Package org.mozilla.jss.pkix.cmmf
Class CertRepContent
- java.lang.Object
-
- org.mozilla.jss.pkix.cmmf.CertRepContent
-
- All Implemented Interfaces:
ASN1Value
public class CertRepContent extends java.lang.Object implements ASN1Value
A CMMF CertRepContent.CertRepContent ::= SEQUENCE { caPubs [1] SEQUENCE SIZE (1..MAX) OF Certificate OPTIONAL, response SEQUENCE of CertResponse }
- See Also:
CertResponse
-
-
Constructor Summary
Constructors Constructor Description CertRepContent(byte[][] caPubs)
Creates a newCertRepContent
.CertRepContent(byte[][] caPubs, SEQUENCE response)
Creates a newCertRepContent
.CertRepContent(SEQUENCE response)
Creates a newCertRepContent
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCertResponse(CertResponse resp)
Adds anotherCertResponse
.void
encode(java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using its own base tag.void
encode(Tag implicitTag, java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using an implicit tag.byte[][]
getCaPubs()
Returns thecaPubs
field, which is an array of DER-encoded X.509 Certificates.SEQUENCE
getResponse()
Returns theresponse
field, which is a SEQUENCE ofCertResponse
Tag
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static void
main(java.lang.String[] argv)
-
-
-
Field Detail
-
TAG
public static final Tag TAG
-
-
Constructor Detail
-
CertRepContent
public CertRepContent(byte[][] caPubs, SEQUENCE response)
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
public CertRepContent(SEQUENCE response)
Creates a newCertRepContent
- Parameters:
response
- A SEQUENCE ofCertResponse
objects. Must not be null.
-
-
Method Detail
-
addCertResponse
public void addCertResponse(CertResponse resp)
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
public SEQUENCE getResponse()
Returns theresponse
field, which is a SEQUENCE ofCertResponse
-
getTag
public Tag 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
public void encode(java.io.OutputStream ostream) throws java.io.IOException
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.
-
encode
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.
-
main
public static void main(java.lang.String[] argv)
-
-