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 TypeMethodDescriptionvoidaddCertResponse(CertResponse resp) Adds anotherCertResponse.voidencode(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.voidencode(Tag implicitTag, OutputStream ostream) Write this value's DER encoding to an output stream using an implicit tag.byte[][]Returns thecaPubsfield, which is an array of DER-encoded X.509 Certificates.Returns theresponsefield, which is a SEQUENCE ofCertResponsegetTag()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 thecaPubsfield is to be omitted.response- A SEQUENCE ofCertResponseobjects. 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 ofCertResponseobjects. Must not be null.
-
-
Method Details
-
addCertResponse
Adds anotherCertResponse. -
getCaPubs
public byte[][] getCaPubs()Returns thecaPubsfield, which is an array of DER-encoded X.509 Certificates. May returnnullif the field is not present. -
getResponse
Returns theresponsefield, which is a SEQUENCE ofCertResponse -
getTag
Description copied from interface:ASN1ValueReturns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using its own base tag.- Specified by:
encodein interfaceASN1Value- Parameters:
ostream- Output stream.- Throws:
IOException- If an error occurred.
-
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using an implicit tag.- Specified by:
encodein interfaceASN1Value- Parameters:
implicitTag- Implicit tag.ostream- Output stream.- Throws:
IOException- If an error occurred.
-
main
-