org.bouncycastle.asn1.cms

Class EnvelopedData

public class EnvelopedData extends ASN1Encodable

Constructor Summary
EnvelopedData(OriginatorInfo originatorInfo, ASN1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, ASN1Set unprotectedAttrs)
EnvelopedData(ASN1Sequence seq)
Method Summary
EncryptedContentInfogetEncryptedContentInfo()
static EnvelopedDatagetInstance(ASN1TaggedObject obj, boolean explicit)
return an EnvelopedData object from a tagged object.
static EnvelopedDatagetInstance(Object obj)
return an EnvelopedData object from the given object.
OriginatorInfogetOriginatorInfo()
ASN1SetgetRecipientInfos()
ASN1SetgetUnprotectedAttrs()
DERIntegergetVersion()
DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.

Constructor Detail

EnvelopedData

public EnvelopedData(OriginatorInfo originatorInfo, ASN1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, ASN1Set unprotectedAttrs)

EnvelopedData

public EnvelopedData(ASN1Sequence seq)

Method Detail

getEncryptedContentInfo

public EncryptedContentInfo getEncryptedContentInfo()

getInstance

public static EnvelopedData getInstance(ASN1TaggedObject obj, boolean explicit)
return an EnvelopedData object from a tagged object.

Parameters: obj the tagged object holding the object we want. explicit true if the object is meant to be explicitly tagged false otherwise.

Throws: IllegalArgumentException if the object held by the tagged object cannot be converted.

getInstance

public static EnvelopedData getInstance(Object obj)
return an EnvelopedData object from the given object.

Parameters: obj the object we want converted.

Throws: IllegalArgumentException if the object cannot be converted.

getOriginatorInfo

public OriginatorInfo getOriginatorInfo()

getRecipientInfos

public ASN1Set getRecipientInfos()

getUnprotectedAttrs

public ASN1Set getUnprotectedAttrs()

getVersion

public DERInteger getVersion()

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
 EnvelopedData ::= SEQUENCE {
     version CMSVersion,
     originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL,
     recipientInfos RecipientInfos,
     encryptedContentInfo EncryptedContentInfo,
     unprotectedAttrs [1] IMPLICIT UnprotectedAttributes OPTIONAL 
 }