Top Description Fields Constructors Methods
org.bouncycastle.asn1.cms

public Class EnvelopedData

extends ASN1Object
Class Inheritance
Imports
java.util.Enumeration, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1Set, .ASN1TaggedObject, .BERSequence, .DERTaggedObject

RFC 5652 EnvelopedData object.
EnvelopedData ::= SEQUENCE {
    version CMSVersion,
    originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL,
    recipientInfos RecipientInfos,
    encryptedContentInfo EncryptedContentInfo,
    unprotectedAttrs [1] IMPLICIT UnprotectedAttributes OPTIONAL 
}

Field Summary

Modifier and TypeField and Description
private EncryptedContentInfo
private OriginatorInfo
private ASN1Set
private ASN1Set
private ASN1Integer

Constructor Summary

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

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

private

Method Summary

Modifier and TypeMethod and Description
public static int
calculateVersion(OriginatorInfo originatorInfo, ASN1Set recipientInfos, ASN1Set unprotectedAttrs)

public EncryptedContentInfo
public static EnvelopedData
getInstance(ASN1TaggedObject
the tagged object holding the object we want.
obj
,
boolean
true if the object is meant to be explicitly tagged false otherwise.
explicit
)

Return an EnvelopedData object from a tagged object.

public static EnvelopedData
getInstance(Object
the object we want converted.
obj
)

Return an EnvelopedData object from the given object.

public OriginatorInfo
public ASN1Set
public ASN1Set
public ASN1Integer
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

encryptedContentInfoback to summary
private EncryptedContentInfo encryptedContentInfo
originatorInfoback to summary
private OriginatorInfo originatorInfo
recipientInfosback to summary
private ASN1Set recipientInfos
unprotectedAttrsback to summary
private ASN1Set unprotectedAttrs
versionback to summary
private ASN1Integer version

Constructor Detail

EnvelopedDataback to summary
public EnvelopedData(OriginatorInfo originatorInfo, ASN1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, ASN1Set unprotectedAttrs)
EnvelopedDataback to summary
public EnvelopedData(OriginatorInfo originatorInfo, ASN1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, Attributes unprotectedAttrs)
EnvelopedDataback to summary
private EnvelopedData(ASN1Sequence seq)

Method Detail

calculateVersionback to summary
public static int calculateVersion(OriginatorInfo originatorInfo, ASN1Set recipientInfos, ASN1Set unprotectedAttrs)
getEncryptedContentInfoback to summary
public EncryptedContentInfo getEncryptedContentInfo()
getInstanceback to summary
public static EnvelopedData getInstance(ASN1TaggedObject obj, boolean explicit)

Return an EnvelopedData object from a tagged object.

Parameters
obj:ASN1TaggedObject

the tagged object holding the object we want.

explicit:boolean

true if the object is meant to be explicitly tagged false otherwise.

Exceptions
IllegalArgumentException:
if the object held by the tagged object cannot be converted.
getInstanceback to summary
public static EnvelopedData getInstance(Object obj)

Return an EnvelopedData object from the given object.

Accepted inputs:

Parameters
obj:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getOriginatorInfoback to summary
public OriginatorInfo getOriginatorInfo()
getRecipientInfosback to summary
public ASN1Set getRecipientInfos()
getUnprotectedAttrsback to summary
public ASN1Set getUnprotectedAttrs()
getVersionback to summary
public ASN1Integer getVersion()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.