Package org.bouncycastle.cms
Class CMSAuthEnvelopedData
- java.lang.Object
-
- org.bouncycastle.cms.CMSAuthEnvelopedData
-
- All Implemented Interfaces:
org.bouncycastle.util.Encodable
public class CMSAuthEnvelopedData extends java.lang.Object implements org.bouncycastle.util.Encodablecontaining class for an CMS AuthEnveloped Data object
-
-
Constructor Summary
Constructors Constructor Description CMSAuthEnvelopedData(byte[] authEnvData)CMSAuthEnvelopedData(java.io.InputStream authEnvData)CMSAuthEnvelopedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.cms.AttributeTablegetAuthAttrs()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.byte[]getMac()Return the MAC value that was originally calculated for this AuthEnveloped data.OriginatorInformationgetOriginatorInfo()Return the originator information associated with this message if present.RecipientInformationStoregetRecipientInfos()return a store of the intended recipients for this messageorg.bouncycastle.asn1.cms.AttributeTablegetUnauthAttrs()return a table of the unauthenticated attributes indexed by the OID of the attribute.org.bouncycastle.asn1.cms.ContentInfotoASN1Structure()return the ContentInfo
-
-
-
Constructor Detail
-
CMSAuthEnvelopedData
public CMSAuthEnvelopedData(byte[] authEnvData) throws CMSException- Throws:
CMSException
-
CMSAuthEnvelopedData
public CMSAuthEnvelopedData(java.io.InputStream authEnvData) throws CMSException- Throws:
CMSException
-
CMSAuthEnvelopedData
public CMSAuthEnvelopedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo) throws CMSException- Throws:
CMSException
-
-
Method Detail
-
getOriginatorInfo
public OriginatorInformation getOriginatorInfo()
Return the originator information associated with this message if present.- Returns:
- OriginatorInformation, null if not present.
-
getRecipientInfos
public RecipientInformationStore getRecipientInfos()
return a store of the intended recipients for this message
-
getAuthAttrs
public 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.- Returns:
- the authenticated attributes.
-
getUnauthAttrs
public org.bouncycastle.asn1.cms.AttributeTable getUnauthAttrs()
return a table of the unauthenticated attributes indexed by the OID of the attribute.- Returns:
- the unauthenticated attributes.
-
getMac
public byte[] getMac()
Return the MAC value that was originally calculated for this AuthEnveloped data.- Returns:
- the MAC data associated with the stream.
-
toASN1Structure
public org.bouncycastle.asn1.cms.ContentInfo toASN1Structure()
return the ContentInfo
-
getEncoded
public byte[] getEncoded() throws java.io.IOExceptionreturn the ASN.1 encoded representation of this object.- Specified by:
getEncodedin interfaceorg.bouncycastle.util.Encodable- Throws:
java.io.IOException
-
-