org.bouncycastle.asn1.cms

Class EnvelopedData

Implemented Interfaces:
DEREncodable

public class EnvelopedData
extends ASN1Encodable

Field Summary

Fields inherited from class org.bouncycastle.asn1.ASN1Encodable

BER, DER

Constructor Summary

EnvelopedData(ASN1Sequence seq)
EnvelopedData(OriginatorInfo originatorInfo, ASN1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, ASN1Set unprotectedAttrs)

Method Summary

EncryptedContentInfo
getEncryptedContentInfo()
static EnvelopedData
getInstance(Object obj)
return an EnvelopedData object from the given object.
static EnvelopedData
getInstance(ASN1TaggedObject obj, boolean explicit)
return an EnvelopedData object from a tagged object.
OriginatorInfo
getOriginatorInfo()
ASN1Set
getRecipientInfos()
ASN1Set
getUnprotectedAttrs()
DERInteger
getVersion()
DERObject
toASN1Object()
Produce an object suitable for an ASN1OutputStream.

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode, toASN1Object

Constructor Details

EnvelopedData

public EnvelopedData(ASN1Sequence seq)

EnvelopedData

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

Method Details

getEncryptedContentInfo

public EncryptedContentInfo getEncryptedContentInfo()

getInstance

public static EnvelopedData getInstance(Object obj)
return an EnvelopedData object from the given object.
Parameters:
obj - the object we want converted.

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.

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 
 }
 
Overrides:
toASN1Object in interface ASN1Encodable