|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.jss.pkcs12.SecretBag
public class SecretBag
Nested Class Summary | |
---|---|
static class |
SecretBag.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 | |
---|---|
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 |
getSecret()
Returns the secret stored in the SecretBag. |
OBJECT_IDENTIFIER |
getSecretType()
Returns the type of secret stored in the SecretBag. |
Tag |
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. |
static SecretBag.Template |
getTemplate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecretBag(OBJECT_IDENTIFIER secretType, ASN1Value secret)
Method Detail |
---|
public OBJECT_IDENTIFIER getSecretType()
public ANY getSecret()
public Tag getTag()
ASN1Value
getTag
in interface ASN1Value
public void encode(java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
encode
in interface ASN1Value
java.io.IOException
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
encode
in interface ASN1Value
java.io.IOException
public static SecretBag.Template getTemplate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |