Modifier and Type | Class and Description |
---|---|
static class |
EncryptedKey.Template
A Template for decoding BER-encoded EncryptedKeys.
|
static class |
EncryptedKey.Type
The type of EncryptedKey.
|
Modifier and Type | Field and Description |
---|---|
static EncryptedKey.Type |
ENCRYPTED_VALUE |
static EncryptedKey.Type |
ENVELOPED_DATA |
Constructor and Description |
---|
EncryptedKey(ANY envelopedData) |
EncryptedKey(EncryptedValue encryptedValue) |
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.
|
EncryptedValue |
getEncryptedValue()
Should only be called if
getType returns
ENCRYPTED_VALUE . |
ANY |
getEnvelopedData()
Should only be called if
getType returns
ENVELOPED_DATA . |
Tag |
getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
|
static EncryptedKey.Template |
getTemplate() |
EncryptedKey.Type |
getType() |
public static final EncryptedKey.Type ENCRYPTED_VALUE
public static final EncryptedKey.Type ENVELOPED_DATA
public EncryptedKey(EncryptedValue encryptedValue)
public EncryptedKey(ANY envelopedData)
public EncryptedKey.Type getType()
public EncryptedValue getEncryptedValue()
getType
returns
ENCRYPTED_VALUE
.public ANY getEnvelopedData()
getType
returns
ENVELOPED_DATA
. ANY is returned to prevent a circular
dependency between the org.mozilla.jss.pkcs7 package and the
org.mozilla.jss.pkix hierarchy.public Tag getTag()
ASN1Value
public void encode(java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public static EncryptedKey.Template getTemplate()