org.mozilla.jss.pkcs12

Class CertBag

public class CertBag extends Object implements ASN1Value

A PKCS #12 cert bag.
Nested Class Summary
static classCertBag.Template
A Template class for decoding CertBags from their BER encoding.
Field Summary
static OBJECT_IDENTIFIERSDSI_CERT_TYPE
static OBJECT_IDENTIFIERX509_CERT_TYPE
Constructor Summary
CertBag(OBJECT_IDENTIFIER certType, ASN1Value cert)
Creates a CertBag from a type and a cert.
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicitTag, OutputStream ostream)
ANYgetCert()
Returns the cert field of the CertBag.
OBJECT_IDENTIFIERgetCertType()
Returns the certType field of the CertBag.
ASN1ValuegetInterpretedCert()
Returns the cert field of the CertBag based on its type.
TaggetTag()
static CertBag.TemplategetTemplate()

Field Detail

SDSI_CERT_TYPE

public static final OBJECT_IDENTIFIER SDSI_CERT_TYPE

X509_CERT_TYPE

public static final OBJECT_IDENTIFIER X509_CERT_TYPE

Constructor Detail

CertBag

public CertBag(OBJECT_IDENTIFIER certType, ASN1Value cert)
Creates a CertBag from a type and a cert.

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicitTag, OutputStream ostream)

getCert

public ANY getCert()
Returns the cert field of the CertBag.

getCertType

public OBJECT_IDENTIFIER getCertType()
Returns the certType field of the CertBag. Currently defined types are:

getInterpretedCert

public ASN1Value getInterpretedCert()
Returns the cert field of the CertBag based on its type.

getTag

public Tag getTag()

getTemplate

public static CertBag.Template getTemplate()