org.mozilla.jss.pkcs12

Class SecretBag

public class SecretBag extends Object implements ASN1Value

Nested Class Summary
static classSecretBag.Template
A Template class for decoding SecretBags from BER.
Constructor Summary
SecretBag(OBJECT_IDENTIFIER secretType, ASN1Value secret)
Creates a SecretBag with the given secret type and secret.
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicitTag, OutputStream ostream)
ANYgetSecret()
Returns the secret stored in the SecretBag.
OBJECT_IDENTIFIERgetSecretType()
Returns the type of secret stored in the SecretBag.
TaggetTag()
static SecretBag.TemplategetTemplate()

Constructor Detail

SecretBag

public SecretBag(OBJECT_IDENTIFIER secretType, ASN1Value secret)
Creates a SecretBag with the given secret type and secret. Neither may be null.

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicitTag, OutputStream ostream)

getSecret

public ANY getSecret()
Returns the secret stored in the SecretBag.

getSecretType

public OBJECT_IDENTIFIER getSecretType()
Returns the type of secret stored in the SecretBag.

getTag

public Tag getTag()

getTemplate

public static SecretBag.Template getTemplate()