| Modifier and Type | Class and Description | 
|---|---|
static class  | 
SecretBag.Template
A Template class for decoding SecretBags from BER. 
 | 
| Constructor and Description | 
|---|
SecretBag(OBJECT_IDENTIFIER secretType,
         ASN1Value secret)
Creates a SecretBag with the given secret type and secret. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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()  | 
public SecretBag(OBJECT_IDENTIFIER secretType, ASN1Value secret)
public OBJECT_IDENTIFIER getSecretType()
public ANY getSecret()
public Tag getTag()
ASN1Valuepublic void encode(java.io.OutputStream ostream)
            throws java.io.IOException
ASN1Valuepublic void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
ASN1Valuepublic static SecretBag.Template getTemplate()