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 |
getAuthAttrs()
return a table of the digested attributes indexed by
the OID of the attribute.
|
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 |
getUnauthAttrs()
return a table of the undigested attributes indexed by
the OID of the attribute.
|
org.bouncycastle.asn1.cms.ContentInfo |
toASN1Structure()
return the ContentInfo
|
public CMSAuthenticatedData(byte[] authData) throws CMSException
CMSException
public CMSAuthenticatedData(byte[] authData, DigestCalculatorProvider digestCalculatorProvider) throws CMSException
CMSException
public CMSAuthenticatedData(java.io.InputStream authData) throws CMSException
CMSException
public CMSAuthenticatedData(java.io.InputStream authData, DigestCalculatorProvider digestCalculatorProvider) throws CMSException
CMSException
public CMSAuthenticatedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo) throws CMSException
CMSException
public CMSAuthenticatedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo, DigestCalculatorProvider digestCalculatorProvider) throws CMSException
CMSException
public 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()
public org.bouncycastle.asn1.cms.AttributeTable getUnauthAttrs()
public byte[] getEncoded() throws java.io.IOException
getEncoded
in interface org.bouncycastle.util.Encodable
java.io.IOException
public byte[] getContentDigest()