org.mozilla.jss.pkcs12
public class CertBag extends Object implements ASN1Value
Nested Class Summary | |
---|---|
static class | CertBag.Template
A Template class for decoding CertBags from their BER encoding. |
Field Summary | |
---|---|
static OBJECT_IDENTIFIER | SDSI_CERT_TYPE |
static OBJECT_IDENTIFIER | X509_CERT_TYPE |
Constructor Summary | |
---|---|
CertBag(OBJECT_IDENTIFIER certType, ASN1Value cert)
Creates a CertBag from a type and a cert. |
Method Summary | |
---|---|
void | encode(OutputStream ostream) |
void | encode(Tag implicitTag, OutputStream ostream) |
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() |
static CertBag.Template | getTemplate() |
X509_CERT_TYPE
)
SDSI_CERT_TYPE
)
X509_CERT_TYPE
, returns
and OCTET_STRING which is the DER-encoding of an X.509 certificate.
SDSI_CERT_TYPE
, returns
an IA5String.
Throws: InvalidBERException If the cert is not encoded correctly.