public class CMSAuthenticatedData extends Object
Constructor and Description |
---|
CMSAuthenticatedData(byte[] authData) |
CMSAuthenticatedData(byte[] authData,
DigestCalculatorProvider digestCalculatorProvider) |
CMSAuthenticatedData(ContentInfo contentInfo) |
CMSAuthenticatedData(ContentInfo contentInfo,
DigestCalculatorProvider digestCalculatorProvider) |
CMSAuthenticatedData(InputStream authData) |
CMSAuthenticatedData(InputStream authData,
DigestCalculatorProvider digestCalculatorProvider) |
Modifier and Type | Method and Description |
---|---|
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.
|
AlgorithmParameters |
getMacAlgorithmParameters(Provider provider)
Return an AlgorithmParameters object giving the MAC parameters
used to digest the message content.
|
AlgorithmParameters |
getMacAlgorithmParameters(String provider)
Return an AlgorithmParameters object giving the MAC parameters
used to digest the message content.
|
byte[] |
getMacAlgParams()
return the ASN.1 encoded MAC algorithm parameters, or null if
there aren't any.
|
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.
|
public CMSAuthenticatedData(byte[] authData) throws CMSException
CMSException
public CMSAuthenticatedData(byte[] authData, DigestCalculatorProvider digestCalculatorProvider) throws CMSException
CMSException
public CMSAuthenticatedData(InputStream authData) throws CMSException
CMSException
public CMSAuthenticatedData(InputStream authData, DigestCalculatorProvider digestCalculatorProvider) throws CMSException
CMSException
public CMSAuthenticatedData(ContentInfo contentInfo) throws CMSException
CMSException
public CMSAuthenticatedData(ContentInfo contentInfo, DigestCalculatorProvider digestCalculatorProvider) throws CMSException
CMSException
public byte[] getMac()
public String getMacAlgOID()
public byte[] getMacAlgParams()
public AlgorithmParameters getMacAlgorithmParameters(String provider) throws CMSException, NoSuchProviderException
provider
- the provider to generate the parameters for.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) throws CMSException
provider
- the provider to generate the parameters for.CMSException
- if the algorithm cannot be found, or the parameters can't be parsed.public RecipientInformationStore getRecipientInfos()
public ContentInfo getContentInfo()
public AttributeTable getAuthAttrs()
public AttributeTable getUnauthAttrs()
public byte[] getEncoded() throws IOException
IOException
public byte[] getContentDigest()
Copyright © 2015. All rights reserved.