org.mozilla.jss.pkcs12
Class SecretBag
java.lang.Object
org.mozilla.jss.pkcs12.SecretBag
- ASN1Value
public class SecretBag
extends java.lang.Object
SecretBag
public SecretBag(OBJECT_IDENTIFIER secretType,
ASN1Value secret)
Creates a SecretBag with the given secret type and secret. Neither
may be null.
encode
public void encode(OutputStream ostream)
throws IOException
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream ostream)
throws IOException
- encode in interface ASN1Value
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.