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

public Class AuthEnvelopedData

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

RFC 5083: CMS AuthEnveloped Data object.

ASN.1:

id-ct-authEnvelopedData OBJECT IDENTIFIER ::= { iso(1)
      member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
      smime(16) ct(1) 23 }

AuthEnvelopedData ::= SEQUENCE {
      version CMSVersion,
      originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL,
      recipientInfos RecipientInfos,
      authEncryptedContentInfo EncryptedContentInfo,
      authAttrs [1] IMPLICIT AuthAttributes OPTIONAL,
      mac MessageAuthenticationCode,
      unauthAttrs [2] IMPLICIT UnauthAttributes OPTIONAL }

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
AuthEnvelopedData(OriginatorInfo originatorInfo, ASN1Set recipientInfos, EncryptedContentInfo authEncryptedContentInfo, ASN1Set authAttrs, ASN1OctetString mac, ASN1Set unauthAttrs)

private
AuthEnvelopedData(ASN1Sequence
An ASN1Sequence with AuthEnvelopedData
seq
)

Constructs AuthEnvelopedData by parsing supplied ASN1Sequence

Method Summary

Modifier and TypeMethod and Description
public ASN1Set
public EncryptedContentInfo
public static AuthEnvelopedData

Returns:

a reference that can be assigned to AuthEnvelopedData (may be null)
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 AuthEnvelopedData object from a tagged object.

public static AuthEnvelopedData

Returns:

a reference that can be assigned to AuthEnvelopedData (may be null)
getInstance
(Object
The object we want converted.
obj
)

Return an AuthEnvelopedData object from the given object.

public ASN1OctetString
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:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

authAttrsback to summary
private ASN1Set authAttrs
authEncryptedContentInfoback to summary
private EncryptedContentInfo authEncryptedContentInfo
macback to summary
private ASN1OctetString mac
originatorInfoback to summary
private OriginatorInfo originatorInfo
recipientInfosback to summary
private ASN1Set recipientInfos
unauthAttrsback to summary
private ASN1Set unauthAttrs
versionback to summary
private ASN1Integer version

Constructor Detail

AuthEnvelopedDataback to summary
public AuthEnvelopedData(OriginatorInfo originatorInfo, ASN1Set recipientInfos, EncryptedContentInfo authEncryptedContentInfo, ASN1Set authAttrs, ASN1OctetString mac, ASN1Set unauthAttrs)
AuthEnvelopedDataback to summary
private AuthEnvelopedData(ASN1Sequence seq)

Constructs AuthEnvelopedData by parsing supplied ASN1Sequence

Parameters
seq:ASN1Sequence

An ASN1Sequence with AuthEnvelopedData

Method Detail

getAuthAttrsback to summary
public ASN1Set getAuthAttrs()
getAuthEncryptedContentInfoback to summary
public EncryptedContentInfo getAuthEncryptedContentInfo()
getInstanceback to summary
public static AuthEnvelopedData getInstance(ASN1TaggedObject obj, boolean explicit)

Return an AuthEnvelopedData object from a tagged object.

Accepted inputs:

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.

Returns:AuthEnvelopedData

a reference that can be assigned to AuthEnvelopedData (may be null)

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

Return an AuthEnvelopedData object from the given object.

Accepted inputs:

Parameters
obj:Object

The object we want converted.

Returns:AuthEnvelopedData

a reference that can be assigned to AuthEnvelopedData (may be null)

Exceptions
IllegalArgumentException:
if the object cannot be converted, or was null.
getMacback to summary
public ASN1OctetString getMac()
getOriginatorInfoback to summary
public OriginatorInfo getOriginatorInfo()
getRecipientInfosback to summary
public ASN1Set getRecipientInfos()
getUnauthAttrsback to summary
public ASN1Set getUnauthAttrs()
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.