Package org.mozilla.jss.pkix.cmmf
Class CertRepContent
java.lang.Object
org.mozilla.jss.pkix.cmmf.CertRepContent
- All Implemented Interfaces:
ASN1Value
A CMMF CertRepContent.
CertRepContent ::= SEQUENCE { caPubs [1] SEQUENCE SIZE (1..MAX) OF Certificate OPTIONAL, response SEQUENCE of CertResponse }
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCertRepContent
(byte[][] caPubs) Creates a newCertRepContent
.CertRepContent
(byte[][] caPubs, SEQUENCE response) Creates a newCertRepContent
.CertRepContent
(SEQUENCE response) Creates a newCertRepContent
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCertResponse
(CertResponse resp) Adds anotherCertResponse
.void
encode
(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.void
encode
(Tag implicitTag, OutputStream ostream) Write this value's DER encoding to an output stream using an implicit tag.byte[][]
Returns thecaPubs
field, which is an array of DER-encoded X.509 Certificates.Returns theresponse
field, which is a SEQUENCE ofCertResponse
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static void
-
Field Details
-
caPubs
private byte[][] caPubs -
response
-
TAG
-
-
Constructor Details
-
CertRepContent
Creates a newCertRepContent
.- Parameters:
caPubs
- An array of DER-encoded X.509 Certificates. It may be null if thecaPubs
field is to be omitted.response
- A SEQUENCE ofCertResponse
objects. Must not be null.
-
CertRepContent
public CertRepContent(byte[][] caPubs) Creates a newCertRepContent
. The responses can be added later withaddCertResponse
.- Parameters:
caPubs
- An array of DER-encoded X.509 Certificates, must not be null and must have at least one element.
-
CertRepContent
Creates a newCertRepContent
- Parameters:
response
- A SEQUENCE ofCertResponse
objects. Must not be null.
-
-
Method Details
-
addCertResponse
Adds anotherCertResponse
. -
getCaPubs
public byte[][] getCaPubs()Returns thecaPubs
field, which is an array of DER-encoded X.509 Certificates. May returnnull
if the field is not present. -
getResponse
Returns theresponse
field, which is a SEQUENCE ofCertResponse
-
getTag
Description copied from interface:ASN1Value
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
implicitTag
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
main
-