org.mozilla.jss.pkix.cmmf
Class CertRepContent
java.lang.Object
org.mozilla.jss.pkix.cmmf.CertRepContent
- ASN1Value
public class CertRepContent
extends java.lang.Object
A CMMF
CertRepContent.
CertRepContent ::= SEQUENCE {
caPubs [1] SEQUENCE SIZE (1..MAX) OF Certificate OPTIONAL,
response SEQUENCE of CertResponse }
TAG
public static final Tag TAG
CertRepContent
public CertRepContent(byte[][] caPubs)
Creates a new CertRepContent
. The responses can be
added later with addCertResponse
.
caPubs
- An array of DER-encoded X.509 Certificates, must not
be null and must have at least one element.
CertRepContent
public CertRepContent(byte[][] caPubs,
SEQUENCE response)
Creates a new CertRepContent
.
caPubs
- An array of DER-encoded X.509 Certificates. It may be
null if the caPubs
field is to be omitted.response
- A SEQUENCE of CertResponse
objects.
Must not be null.
CertRepContent
public CertRepContent(SEQUENCE response)
Creates a new CertRepContent
response
- A SEQUENCE of CertResponse
objects.
Must not be null.
addCertResponse
public void addCertResponse(CertResponse resp)
Adds another CertResponse
.
encode
public void encode(OutputStream ostream)
throws IOException
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream ostream)
throws IOException
- encode in interface ASN1Value
getCaPubs
public byte[][] getCaPubs()
Returns the caPubs
field, which is an array of
DER-encoded X.509 Certificates. May return null
if the
field is not present.
getResponse
public SEQUENCE getResponse()
Returns the response
field, which is a SEQUENCE
of CertResponse
main
public static void main(argv[] )