org.mozilla.jss.pkix.cms

Class SignedAndEnvelopedData

public class SignedAndEnvelopedData extends Object implements ASN1Value

Nested Class Summary
static classSignedAndEnvelopedData.Template
A Template class for decoding BER-encoded SignedAndEnvelopedData items.
Constructor Summary
SignedAndEnvelopedData(INTEGER version, SET recipientInfos, SET digestAlgorithms, EncryptedContentInfo encryptedContentInfo, SET certificates, SET crls, SET signerInfos)
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicitTag, OutputStream ostream)
SETgetCertificates()
Returns a SET of ANYs.
SETgetCrls()
Returns a SET of ANYs.
SETgetDigestAlgorithms()
Returns a SET of AlgorithmIdentifier.
EncryptedContentInfogetEncryptedContentInfo()
Returns the encrypted content.
SETgetRecipientInfos()
Returns a SET of RecipientInfo.
SETgetSignerInfos()
Returns a SET of SignerInfo.
TaggetTag()
INTEGERgetVersion()
Returns the version number.

Constructor Detail

SignedAndEnvelopedData

public SignedAndEnvelopedData(INTEGER version, SET recipientInfos, SET digestAlgorithms, EncryptedContentInfo encryptedContentInfo, SET certificates, SET crls, SET signerInfos)

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicitTag, OutputStream ostream)

getCertificates

public SET getCertificates()
Returns a SET of ANYs. May return null if the certificates field is not present.

getCrls

public SET getCrls()
Returns a SET of ANYs. May return null if the crls field is not present.

getDigestAlgorithms

public SET getDigestAlgorithms()
Returns a SET of AlgorithmIdentifier.

getEncryptedContentInfo

public EncryptedContentInfo getEncryptedContentInfo()
Returns the encrypted content.

getRecipientInfos

public SET getRecipientInfos()
Returns a SET of RecipientInfo.

getSignerInfos

public SET getSignerInfos()
Returns a SET of SignerInfo.

getTag

public Tag getTag()

getVersion

public INTEGER getVersion()
Returns the version number. The current version is 1.