|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.jss.pkix.crmf.EncryptedKey
public class EncryptedKey
Nested Class Summary | |
---|---|
static class |
EncryptedKey.Template
A Template for decoding BER-encoded EncryptedKeys. |
static class |
EncryptedKey.Type
The type of EncryptedKey. |
Field Summary | |
---|---|
static EncryptedKey.Type |
ENCRYPTED_VALUE
|
static EncryptedKey.Type |
ENVELOPED_DATA
|
Constructor Summary | |
---|---|
EncryptedKey(ANY envelopedData)
|
|
EncryptedKey(EncryptedValue encryptedValue)
|
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. |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final EncryptedKey.Type ENCRYPTED_VALUE
public static final EncryptedKey.Type ENVELOPED_DATA
Constructor Detail |
---|
public EncryptedKey(EncryptedValue encryptedValue)
public EncryptedKey(ANY envelopedData)
Method Detail |
---|
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
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 EncryptedKey.Template getTemplate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |