Modifier and Type | Class | Description |
---|---|---|
static class |
CertBag.Template |
A Template class for decoding CertBags from their BER encoding.
|
Modifier and Type | Field | Description |
---|---|---|
static OBJECT_IDENTIFIER |
SDSI_CERT_TYPE |
|
static OBJECT_IDENTIFIER |
X509_CERT_TYPE |
Constructor | Description |
---|---|
CertBag(OBJECT_IDENTIFIER certType,
ASN1Value cert) |
Creates a CertBag from a type and a cert.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
ANY |
getCert() |
Returns the cert field of the CertBag.
|
OBJECT_IDENTIFIER |
getCertType() |
Returns the certType field of the CertBag.
|
ASN1Value |
getInterpretedCert() |
Returns the cert field of the CertBag based on its type.
|
Tag |
getTag() |
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
|
static CertBag.Template |
getTemplate() |
public static final OBJECT_IDENTIFIER X509_CERT_TYPE
public static final OBJECT_IDENTIFIER SDSI_CERT_TYPE
public CertBag(OBJECT_IDENTIFIER certType, ASN1Value cert)
public OBJECT_IDENTIFIER getCertType()
X509_CERT_TYPE
)
SDSI_CERT_TYPE
)
public ANY getCert()
public ASN1Value getInterpretedCert() throws InvalidBERException
X509_CERT_TYPE
, returns
and OCTET_STRING which is the DER-encoding of an X.509 certificate.
SDSI_CERT_TYPE
, returns
an IA5String.
InvalidBERException
- If the cert is not encoded correctly.public Tag getTag()
ASN1Value
public void encode(java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public static CertBag.Template getTemplate()