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 voidaddCertResponse(CertResponse resp)Adds anotherCertResponse.voidencode(java.io.OutputStream ostream)Write this value's DER encoding to an output stream using its own base tag.voidencode(Tag implicitTag, java.io.OutputStream ostream)Write this value's DER encoding to an output stream using an implicit tag.byte[][]getCaPubs()Returns thecaPubsfield, which is an array of DER-encoded X.509 Certificates.SEQUENCEgetResponse()Returns theresponsefield, which is a SEQUENCE ofCertResponseTaggetTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static voidmain(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 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
public CertRepContent(SEQUENCE response)
Creates a newCertRepContent- Parameters:
response- A SEQUENCE ofCertResponseobjects. Must not be null.
-
-
Method Detail
-
addCertResponse
public void addCertResponse(CertResponse resp)
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
public SEQUENCE getResponse()
Returns theresponsefield, which is a SEQUENCE ofCertResponse
-
getTag
public Tag 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
public void encode(java.io.OutputStream ostream) throws java.io.IOExceptionDescription copied from interface:ASN1ValueWrite 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:ASN1ValueWrite this value's DER encoding to an output stream using an implicit tag.
-
main
public static void main(java.lang.String[] argv)
-
-