public class CMSAuthenticatedData
extends java.lang.Object
implements org.bouncycastle.util.Encodable
| Constructor and Description |
|---|
CMSAuthenticatedData(byte[] authData) |
CMSAuthenticatedData(byte[] authData,
DigestCalculatorProvider digestCalculatorProvider) |
CMSAuthenticatedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo) |
CMSAuthenticatedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo,
DigestCalculatorProvider digestCalculatorProvider) |
CMSAuthenticatedData(java.io.InputStream authData) |
CMSAuthenticatedData(java.io.InputStream authData,
DigestCalculatorProvider digestCalculatorProvider) |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.cms.AttributeTable |
getAuthAttributes()
return a table of the authenticated attributes - indexed by the OID of the attribute.
|
org.bouncycastle.asn1.cms.AttributeTable |
getAuthAttrs()
Deprecated.
Use
getAuthAttributes() instead. |
byte[] |
getContentDigest() |
org.bouncycastle.asn1.cms.ContentInfo |
getContentInfo()
Deprecated.
use toASN1Structure()
|
byte[] |
getEncoded()
return the ASN.1 encoded representation of this object.
|
byte[] |
getMac() |
java.lang.String |
getMacAlgOID()
return the object identifier for the content MAC algorithm.
|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getMacAlgorithm()
Return the MAC algorithm details for the MAC associated with the data in this object.
|
byte[] |
getMacAlgParams()
return the ASN.1 encoded MAC algorithm parameters, or null if
there aren't any.
|
OriginatorInformation |
getOriginatorInfo()
Return the originator information associated with this message if present.
|
RecipientInformationStore |
getRecipientInfos()
return a store of the intended recipients for this message
|
org.bouncycastle.asn1.cms.AttributeTable |
getUnauthAttributes()
return a table of the unauthenticated attributes - indexed by the OID of the attribute.
|
org.bouncycastle.asn1.cms.AttributeTable |
getUnauthAttrs()
Deprecated.
Use
getUnauthAttributes() instead. |
org.bouncycastle.asn1.cms.ContentInfo |
toASN1Structure()
return the ContentInfo
|
public CMSAuthenticatedData(byte[] authData)
throws CMSException
CMSExceptionpublic CMSAuthenticatedData(byte[] authData,
DigestCalculatorProvider digestCalculatorProvider)
throws CMSException
CMSExceptionpublic CMSAuthenticatedData(java.io.InputStream authData)
throws CMSException
CMSExceptionpublic CMSAuthenticatedData(java.io.InputStream authData,
DigestCalculatorProvider digestCalculatorProvider)
throws CMSException
CMSExceptionpublic CMSAuthenticatedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
throws CMSException
CMSExceptionpublic CMSAuthenticatedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo,
DigestCalculatorProvider digestCalculatorProvider)
throws CMSException
CMSExceptionpublic OriginatorInformation getOriginatorInfo()
public byte[] getMac()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getMacAlgorithm()
public java.lang.String getMacAlgOID()
public byte[] getMacAlgParams()
public RecipientInformationStore getRecipientInfos()
public org.bouncycastle.asn1.cms.ContentInfo getContentInfo()
public org.bouncycastle.asn1.cms.ContentInfo toASN1Structure()
public org.bouncycastle.asn1.cms.AttributeTable getAuthAttrs()
getAuthAttributes() instead.public org.bouncycastle.asn1.cms.AttributeTable getAuthAttributes()
public org.bouncycastle.asn1.cms.AttributeTable getUnauthAttrs()
getUnauthAttributes() instead.public org.bouncycastle.asn1.cms.AttributeTable getUnauthAttributes()
public byte[] getEncoded()
throws java.io.IOException
getEncoded in interface org.bouncycastle.util.Encodablejava.io.IOExceptionpublic byte[] getContentDigest()