org.mozilla.jss.pkix.crmf

Class EncryptedKey

public class EncryptedKey extends Object implements ASN1Value

Nested Class Summary
static classEncryptedKey.Template
A Template for decoding BER-encoded EncryptedKeys.
static classEncryptedKey.Type
The type of EncryptedKey.
Field Summary
static EncryptedKey.TypeENCRYPTED_VALUE
static EncryptedKey.TypeENVELOPED_DATA
Constructor Summary
EncryptedKey(EncryptedValue encryptedValue)
EncryptedKey(ANY envelopedData)
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicitTag, OutputStream ostream)
EncryptedValuegetEncryptedValue()
Should only be called if getType returns ENCRYPTED_VALUE.
ANYgetEnvelopedData()
Should only be called if getType returns ENVELOPED_DATA.
TaggetTag()
static EncryptedKey.TemplategetTemplate()
EncryptedKey.TypegetType()

Field Detail

ENCRYPTED_VALUE

public static final EncryptedKey.Type ENCRYPTED_VALUE

ENVELOPED_DATA

public static final EncryptedKey.Type ENVELOPED_DATA

Constructor Detail

EncryptedKey

public EncryptedKey(EncryptedValue encryptedValue)

EncryptedKey

public EncryptedKey(ANY envelopedData)

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicitTag, OutputStream ostream)

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()

getTemplate

public static EncryptedKey.Template getTemplate()

getType

public EncryptedKey.Type getType()