org.mozilla.jss.pkix.cms

Class EncryptedData

public class EncryptedData extends Object implements ASN1Value

The PKCS #7 structure EncryptedData.
Nested Class Summary
static classEncryptedData.Template
A Template for decoding EncryptedData items.
Field Summary
static INTEGERDEFAULT_VERSION
The default version number.
Constructor Summary
EncryptedData(INTEGER version, EncryptedContentInfo encryptedContentInfo)
Creates a new EncryptedData.
EncryptedData(EncryptedContentInfo encryptedContentInfo)
Creates an EncryptedData with the default version.
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicitTag, OutputStream ostream)
EncryptedContentInfogetEncryptedContentInfo()
TaggetTag()
static EncryptedData.TemplategetTemplate()
INTEGERgetVersion()

Field Detail

DEFAULT_VERSION

public static final INTEGER DEFAULT_VERSION
The default version number. This should always be used unless you really know what you are doing.

Constructor Detail

EncryptedData

public EncryptedData(INTEGER version, EncryptedContentInfo encryptedContentInfo)
Creates a new EncryptedData.

Parameters: version Should usually be DEFAULT_VERSION unless you are being very clever.

EncryptedData

public EncryptedData(EncryptedContentInfo encryptedContentInfo)
Creates an EncryptedData with the default version.

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicitTag, OutputStream ostream)

getEncryptedContentInfo

public EncryptedContentInfo getEncryptedContentInfo()

getTag

public Tag getTag()

getTemplate

public static EncryptedData.Template getTemplate()

getVersion

public INTEGER getVersion()