Bouncy Castle Cryptography Library 1.65

org.bouncycastle.cms
Class CMSAuthEnvelopedData

java.lang.Object
  |
  +--org.bouncycastle.cms.CMSAuthEnvelopedData

public class CMSAuthEnvelopedData
extends java.lang.Object

containing class for an CMS AuthEnveloped Data object


Constructor Summary
CMSAuthEnvelopedData(byte[] authEnvData)
           
CMSAuthEnvelopedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
           
CMSAuthEnvelopedData(java.io.InputStream authEnvData)
           
 
Method Summary
 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[] 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMSAuthEnvelopedData

public CMSAuthEnvelopedData(byte[] authEnvData)
                     throws CMSException

CMSAuthEnvelopedData

public CMSAuthEnvelopedData(java.io.InputStream authEnvData)
                     throws CMSException

CMSAuthEnvelopedData

public CMSAuthEnvelopedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
                     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.

Bouncy Castle Cryptography Library 1.65