public class

CMSAuthenticatedData

extends Object
java.lang.Object
   ↳ org.bouncycastle.cms.CMSAuthenticatedData

Class Overview

containing class for an CMS Authenticated Data object

Summary

Public Constructors
CMSAuthenticatedData(byte[] authData)
CMSAuthenticatedData(byte[] authData, DigestCalculatorProvider digestCalculatorProvider)
CMSAuthenticatedData(InputStream authData)
CMSAuthenticatedData(InputStream authData, DigestCalculatorProvider digestCalculatorProvider)
CMSAuthenticatedData(ContentInfo contentInfo)
CMSAuthenticatedData(ContentInfo contentInfo, DigestCalculatorProvider digestCalculatorProvider)
Public Methods
AttributeTable getAuthAttrs()
return a table of the digested attributes indexed by the OID of the attribute.
byte[] getContentDigest()
ContentInfo getContentInfo()
return the ContentInfo
byte[] getEncoded()
return the ASN.1 encoded representation of this object.
byte[] getMac()
String getMacAlgOID()
return the object identifier for the content MAC algorithm.
byte[] getMacAlgParams()
return the ASN.1 encoded MAC algorithm parameters, or null if there aren't any.
AlgorithmParameters getMacAlgorithmParameters(String provider)
Return an AlgorithmParameters object giving the MAC parameters used to digest the message content.
AlgorithmParameters getMacAlgorithmParameters(Provider provider)
Return an AlgorithmParameters object giving the MAC parameters used to digest the message content.
RecipientInformationStore getRecipientInfos()
return a store of the intended recipients for this message
AttributeTable getUnauthAttrs()
return a table of the undigested attributes indexed by the OID of the attribute.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CMSAuthenticatedData (byte[] authData)

Throws
CMSException

public CMSAuthenticatedData (byte[] authData, DigestCalculatorProvider digestCalculatorProvider)

Throws
CMSException

public CMSAuthenticatedData (InputStream authData)

Throws
CMSException

public CMSAuthenticatedData (InputStream authData, DigestCalculatorProvider digestCalculatorProvider)

Throws
CMSException

public CMSAuthenticatedData (ContentInfo contentInfo)

Throws
CMSException

public CMSAuthenticatedData (ContentInfo contentInfo, DigestCalculatorProvider digestCalculatorProvider)

Throws
CMSException

Public Methods

public AttributeTable getAuthAttrs ()

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

public byte[] getContentDigest ()

public ContentInfo getContentInfo ()

return the ContentInfo

public byte[] getEncoded ()

return the ASN.1 encoded representation of this object.

Throws
IOException

public byte[] getMac ()

public String getMacAlgOID ()

return the object identifier for the content MAC algorithm.

public byte[] getMacAlgParams ()

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

public AlgorithmParameters getMacAlgorithmParameters (String provider)

Return an AlgorithmParameters object giving the MAC parameters used to digest the message content.

Parameters
provider the provider to generate the parameters for.
Returns
  • the parameters object, null if there is not one.
Throws
CMSException if the algorithm cannot be found, or the parameters can't be parsed.
NoSuchProviderException if the provider cannot be found.

public AlgorithmParameters getMacAlgorithmParameters (Provider provider)

Return an AlgorithmParameters object giving the MAC parameters used to digest the message content.

Parameters
provider the provider to generate the parameters for.
Returns
  • the parameters object, null if there is not one.
Throws
CMSException if the algorithm cannot be found, or the parameters can't be parsed.

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.