org.mozilla.jss.pkix.crmf
Class EncryptedKey
java.lang.Object
org.mozilla.jss.pkix.crmf.EncryptedKey
- ASN1Value
public class EncryptedKey
extends java.lang.Object
EncryptedKey
public EncryptedKey(ANY envelopedData)
encode
public void encode(OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
its own base tag.
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
an implicit tag.
- encode in interface ASN1Value
getEncryptedValue
public EncryptedValue getEncryptedValue()
Should only be called if getType
returns
ENCRYPTED_VALUE
.
getEnvelopedData
public ANY getEnvelopedData()
Should only be called if 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.
getTag
public Tag getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
- getTag in interface ASN1Value