Top Description Fields Constructors Methods
org.bouncycastle.cms

public Class CMSAuthEnvelopedData

extends Object
implements Encodable
Class Inheritance
All Implemented Interfaces
org.bouncycastle.util.Encodable
Imports
java.io.ByteArrayInputStream, .IOException, .InputStream, org.bouncycastle.asn1.ASN1ObjectIdentifier, .ASN1Set, org.bouncycastle.asn1.cms.AttributeTable, .AuthEnvelopedData, .ContentInfo, .EncryptedContentInfo, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.util.Arrays, .Encodable

containing class for an CMS AuthEnveloped Data object

Field Summary

Modifier and TypeField and Description
private ASN1Set
private AlgorithmIdentifier
pack-priv ContentInfo
private byte[]
private OriginatorInformation
pack-priv RecipientInformationStore
private ASN1Set

Constructor Summary

AccessConstructor and Description
public
CMSAuthEnvelopedData(byte[] authEnvData)

public
public

Method Summary

Modifier and TypeMethod and Description
public AttributeTable

Returns:

the authenticated attributes.
getAuthAttrs
()

return a table of the authenticated attributes (as in those used to provide associated data) indexed by the OID of the attribute.

public byte[]
getEncoded()

Implements org.bouncycastle.util.Encodable.getEncoded.

return the ASN.1 encoded representation of this object.
public byte[]

Returns:

the MAC data associated with the stream.
getMac
()

Return the MAC value that was originally calculated for this AuthEnveloped data.

public OriginatorInformation

Returns:

OriginatorInformation, null if not present.
getOriginatorInfo
()

Return the originator information associated with this message if present.

public RecipientInformationStore
getRecipientInfos()

return a store of the intended recipients for this message

public AttributeTable

Returns:

the unauthenticated attributes.
getUnauthAttrs
()

return a table of the unauthenticated attributes indexed by the OID of the attribute.

public ContentInfo
toASN1Structure()

return the ContentInfo

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

authAttrsback to summary
private ASN1Set authAttrs
authEncAlgback to summary
private AlgorithmIdentifier authEncAlg
contentInfoback to summary
pack-priv ContentInfo contentInfo
macback to summary
private byte[] mac
originatorInfoback to summary
private OriginatorInformation originatorInfo
recipientInfoStoreback to summary
pack-priv RecipientInformationStore recipientInfoStore
unauthAttrsback to summary
private ASN1Set unauthAttrs

Constructor Detail

CMSAuthEnvelopedDataback to summary
public CMSAuthEnvelopedData(byte[] authEnvData) throws CMSException
CMSAuthEnvelopedDataback to summary
public CMSAuthEnvelopedData(InputStream authEnvData) throws CMSException
CMSAuthEnvelopedDataback to summary
public CMSAuthEnvelopedData(ContentInfo contentInfo) throws CMSException

Method Detail

getAuthAttrsback to summary
public AttributeTable getAuthAttrs()

return a table of the authenticated attributes (as in those used to provide associated data) indexed by the OID of the attribute.

Returns:AttributeTable

the authenticated attributes.

getEncodedback to summary
public byte[] getEncoded() throws IOException

Implements org.bouncycastle.util.Encodable.getEncoded.

return the ASN.1 encoded representation of this object.

Returns:byte[]

Doc from org.bouncycastle.util.Encodable.getEncoded.

a byte array representing the encoding.

Exceptions
IOException:

Doc from org.bouncycastle.util.Encodable.getEncoded.

if an issue arises generation the encoding.

getMacback to summary
public byte[] getMac()

Return the MAC value that was originally calculated for this AuthEnveloped data.

Returns:byte[]

the MAC data associated with the stream.

getOriginatorInfoback to summary
public OriginatorInformation getOriginatorInfo()

Return the originator information associated with this message if present.

Returns:OriginatorInformation

OriginatorInformation, null if not present.

getRecipientInfosback to summary
public RecipientInformationStore getRecipientInfos()

return a store of the intended recipients for this message

getUnauthAttrsback to summary
public AttributeTable getUnauthAttrs()

return a table of the unauthenticated attributes indexed by the OID of the attribute.

Returns:AttributeTable

the unauthenticated attributes.

toASN1Structureback to summary
public ContentInfo toASN1Structure()

return the ContentInfo