public class CertRepContent extends java.lang.Object implements ASN1Value
CertRepContent ::= SEQUENCE {
caPubs [1] SEQUENCE SIZE (1..MAX) OF Certificate OPTIONAL,
response SEQUENCE of CertResponse }
CertResponse| Constructor and Description |
|---|
CertRepContent(byte[][] caPubs)
Creates a new
CertRepContent. |
CertRepContent(byte[][] caPubs,
SEQUENCE response)
Creates a new
CertRepContent. |
CertRepContent(SEQUENCE response)
Creates a new
CertRepContent |
| Modifier and Type | Method and Description |
|---|---|
void |
addCertResponse(CertResponse resp)
Adds another
CertResponse. |
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 the
caPubs field, which is an array of
DER-encoded X.509 Certificates. |
SEQUENCE |
getResponse()
Returns the
response field, which is a SEQUENCE
of CertResponse |
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) |
public static final Tag TAG
public CertRepContent(byte[][] caPubs,
SEQUENCE response)
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.public CertRepContent(byte[][] caPubs)
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.public CertRepContent(SEQUENCE response)
CertRepContentresponse - A SEQUENCE of CertResponse objects.
Must not be null.public void addCertResponse(CertResponse resp)
CertResponse.public byte[][] getCaPubs()
caPubs field, which is an array of
DER-encoded X.509 Certificates. May return null if the
field is not present.public SEQUENCE getResponse()
response field, which is a SEQUENCE
of CertResponsepublic Tag getTag()
ASN1Valuepublic void encode(java.io.OutputStream ostream)
throws java.io.IOException
ASN1Valuepublic void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
ASN1Valuepublic static void main(java.lang.String[] argv)