Top Description Fields Constructors Methods
org.bouncycastle.cms

public Class CMSAuthenticatedData

extends Object
implements Encodable
Class Inheritance
All Implemented Interfaces
org.bouncycastle.util.Encodable
Imports
java.io.IOException, .InputStream, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1OctetString, .ASN1Set, org.bouncycastle.asn1.cms.Attribute, .AttributeTable, .AuthenticatedData, .CMSAlgorithmProtection, .CMSAttributes, .ContentInfo, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.operator.DigestCalculatorProvider, .OperatorCreationException, org.bouncycastle.util.Arrays, .Encodable

containing class for an CMS Authenticated Data object

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
CMSAuthenticatedData(byte[] authData)

public
CMSAuthenticatedData(byte[] authData, DigestCalculatorProvider digestCalculatorProvider)

public
public
CMSAuthenticatedData(InputStream authData, DigestCalculatorProvider digestCalculatorProvider)

public
public
CMSAuthenticatedData(ContentInfo contentInfo, DigestCalculatorProvider digestCalculatorProvider)

Method Summary

Modifier and TypeMethod and Description
public AttributeTable
getAuthAttrs()

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

public byte[]
public ContentInfo
getContentInfo()
Deprecated use toASN1Structure()

return the ContentInfo

public byte[]
getEncoded()

Implements org.bouncycastle.util.Encodable.getEncoded.

return the ASN.1 encoded representation of this object.

public byte[]
public String
getMacAlgOID()

return the object identifier for the content MAC algorithm.

public AlgorithmIdentifier

Returns:

AlgorithmIdentifier representing the MAC algorithm.
getMacAlgorithm
()

Return the MAC algorithm details for the MAC associated with the data in this object.

public byte[]
getMacAlgParams()

return the ASN.1 encoded MAC algorithm parameters, or null if there aren't any.

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
getUnauthAttrs()

return a table of the undigested 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
contentInfoback to summary
pack-priv ContentInfo contentInfo
macback to summary
private byte[] mac
macAlgback to summary
private AlgorithmIdentifier macAlg
originatorInfoback to summary
private OriginatorInformation originatorInfo
recipientInfoStoreback to summary
pack-priv RecipientInformationStore recipientInfoStore
unauthAttrsback to summary
private ASN1Set unauthAttrs

Constructor Detail

CMSAuthenticatedDataback to summary
public CMSAuthenticatedData(byte[] authData) throws CMSException
CMSAuthenticatedDataback to summary
public CMSAuthenticatedData(byte[] authData, DigestCalculatorProvider digestCalculatorProvider) throws CMSException
CMSAuthenticatedDataback to summary
public CMSAuthenticatedData(InputStream authData) throws CMSException
CMSAuthenticatedDataback to summary
public CMSAuthenticatedData(InputStream authData, DigestCalculatorProvider digestCalculatorProvider) throws CMSException
CMSAuthenticatedDataback to summary
public CMSAuthenticatedData(ContentInfo contentInfo) throws CMSException
CMSAuthenticatedDataback to summary
public CMSAuthenticatedData(ContentInfo contentInfo, DigestCalculatorProvider digestCalculatorProvider) throws CMSException

Method Detail

getAuthAttrsback to summary
public AttributeTable getAuthAttrs()

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

getContentDigestback to summary
public byte[] getContentDigest()
getContentInfoback to summary
public ContentInfo getContentInfo()

Deprecated

use toASN1Structure()

return the ContentInfo

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()
getMacAlgOIDback to summary
public String getMacAlgOID()

return the object identifier for the content MAC algorithm.

getMacAlgorithmback to summary
public AlgorithmIdentifier getMacAlgorithm()

Return the MAC algorithm details for the MAC associated with the data in this object.

Returns:AlgorithmIdentifier

AlgorithmIdentifier representing the MAC algorithm.

getMacAlgParamsback to summary
public byte[] getMacAlgParams()

return the ASN.1 encoded MAC algorithm parameters, or null if there aren't any.

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 undigested attributes indexed by the OID of the attribute.

toASN1Structureback to summary
public ContentInfo toASN1Structure()

return the ContentInfo