public class CMSAuthEnvelopedData
extends java.lang.Object
implements org.bouncycastle.util.Encodable
| Constructor and Description |
|---|
CMSAuthEnvelopedData(byte[] authEnvData)
Create a CMSAuthEnvelopedData object from its encoding.
|
CMSAuthEnvelopedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
Create a CMSAuthEnvelopedData object from an already-parsed ContentInfo.
|
CMSAuthEnvelopedData(java.io.InputStream authEnvData)
Create a CMSAuthEnvelopedData object from a stream.
|
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.cms.AttributeTable |
getAuthAttrs()
return a table of the authenticated attributes (as in those used to provide associated data) indexed by
the OID of the attribute.
|
byte[] |
getEncoded()
return the ASN.1 encoded representation of this object.
|
java.lang.String |
getEncryptionAlgOID()
return the object identifier for the content encryption algorithm.
|
byte[] |
getMac()
Return the MAC value that was originally calculated for this AuthEnveloped data.
|
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 unauthenticated attributes indexed by
the OID of the attribute.
|
org.bouncycastle.asn1.cms.ContentInfo |
toASN1Structure()
return the ContentInfo
|
public CMSAuthEnvelopedData(byte[] authEnvData)
throws CMSException
authEnvData - the complete encoding of the AuthEnvelopedData structure (a CMS ContentInfo).
The array must hold the entire encoding and nothing extra - trailing bytes
beyond the AuthEnvelopedData are not permitted.CMSException - if the encoding cannot be parsed as an AuthEnvelopedData.public CMSAuthEnvelopedData(java.io.InputStream authEnvData)
throws CMSException
authEnvData - a stream positioned at the start of the AuthEnvelopedData encoding (a CMS ContentInfo).CMSException - if the encoding cannot be parsed as an AuthEnvelopedData.public CMSAuthEnvelopedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
throws CMSException
contentInfo - the ContentInfo carrying the AuthEnvelopedData.CMSException - if the ContentInfo does not hold a well-formed AuthEnvelopedData.public java.lang.String getEncryptionAlgOID()
public OriginatorInformation getOriginatorInfo()
public RecipientInformationStore getRecipientInfos()
public org.bouncycastle.asn1.cms.AttributeTable getAuthAttrs()
public org.bouncycastle.asn1.cms.AttributeTable getUnauthAttrs()
public byte[] getMac()
public org.bouncycastle.asn1.cms.ContentInfo toASN1Structure()
public byte[] getEncoded()
throws java.io.IOException
getEncoded in interface org.bouncycastle.util.Encodablejava.io.IOException