Top Inners Fields Constructors Methods
org.bouncycastle.cms

public Class CMSAuthEnvelopedDataParser

extends CMSContentInfoParser
Class Inheritance
Imports
java.io.ByteArrayInputStream, .IOException, .InputStream, .OutputStream, org.bouncycastle.asn1.ASN1Encoding, .ASN1ObjectIdentifier, .ASN1OctetString, .ASN1OctetStringParser, .ASN1SequenceParser, .ASN1Set, .ASN1SetParser, .BERTags, org.bouncycastle.asn1.cms.AttributeTable, .AuthEnvelopedDataParser, .CMSAttributes, .EncryptedContentInfoParser, .OriginatorInfo, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.util.Arrays

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private boolean
private AttributeTable
private ASN1Set
private final AuthEnvelopedDataParser
private final AlgorithmIdentifier
private final CMSAuthEnvelopedDataParser.LocalMacProvider
private OriginatorInformation
private final RecipientInformationStore
private boolean
private AttributeTable
Inherited from org.bouncycastle.cms.CMSContentInfoParser:
_contentInfo_data

Constructor Summary

AccessConstructor and Description
public
CMSAuthEnvelopedDataParser(byte[] envelopedData)

public

Method Summary

Modifier and TypeMethod and Description
public AttributeTable
getAuthAttrs()

return a table of the unauthenticated attributes indexed by the OID of the attribute.

private ASN1Set
public byte[]

Returns:

the contents of the messageDigest attribute, if available. Null if not present.
getContentDigest
()

This will only be valid after the content has been read.

public String
getEncAlgOID()

return the object identifier for the mac algorithm.

public byte[]
getEncAlgParams()

return the ASN.1 encoded encryption algorithm parameters, or null if there aren't any.

public AlgorithmIdentifier

Returns:

AlgorithmIdentifier representing the MAC algorithm.
getEncryptionAlgOID
()

Return the MAC algorithm details for the MAC associated with the data in this object.

public byte[]
public OriginatorInformation

Returns:

OriginatorInformation, null if not present.
getOriginatorInfo
()

Return the originator information associated with this message if present.

public RecipientInformationStore
getRecipientInfos()

return a store of the intended recipients for this message

public AttributeTable
getUnauthAttrs()

return a table of the unauthenticated attributes indexed by the OID of the attribute.

Inherited from org.bouncycastle.cms.CMSContentInfoParser:
close

Field Detail

authAttrNotReadback to summary
private boolean authAttrNotRead
authAttrsback to summary
private AttributeTable authAttrs
authAttrSetback to summary
private ASN1Set authAttrSet
authEvnDataback to summary
private final AuthEnvelopedDataParser authEvnData
encAlgback to summary
private final AlgorithmIdentifier encAlg
localMacProviderback to summary
private final CMSAuthEnvelopedDataParser.LocalMacProvider localMacProvider
originatorInfoback to summary
private OriginatorInformation originatorInfo
recipientInfoStoreback to summary
private final RecipientInformationStore recipientInfoStore
unauthAttrNotReadback to summary
private boolean unauthAttrNotRead
unauthAttrsback to summary
private AttributeTable unauthAttrs

Constructor Detail

CMSAuthEnvelopedDataParserback to summary
public CMSAuthEnvelopedDataParser(byte[] envelopedData) throws CMSException, IOException
CMSAuthEnvelopedDataParserback to summary
public CMSAuthEnvelopedDataParser(InputStream envelopedData) throws CMSException, IOException

Method Detail

getAuthAttrsback to summary
public AttributeTable getAuthAttrs() throws IOException

return a table of the unauthenticated attributes indexed by the OID of the attribute.

getAuthAttrSetback to summary
private ASN1Set getAuthAttrSet() throws IOException
getContentDigestback to summary
public byte[] getContentDigest()

This will only be valid after the content has been read.

Returns:byte[]

the contents of the messageDigest attribute, if available. Null if not present.

getEncAlgOIDback to summary
public String getEncAlgOID()

return the object identifier for the mac algorithm.

getEncAlgParamsback to summary
public byte[] getEncAlgParams()

return the ASN.1 encoded encryption algorithm parameters, or null if there aren't any.

getEncryptionAlgOIDback to summary
public AlgorithmIdentifier getEncryptionAlgOID()

Return the MAC algorithm details for the MAC associated with the data in this object.

Returns:AlgorithmIdentifier

AlgorithmIdentifier representing the MAC algorithm.

getMacback to summary
public byte[] getMac() throws IOException
getOriginatorInfoback to summary
public OriginatorInformation getOriginatorInfo()

Return the originator information associated with this message if present.

Returns:OriginatorInformation

OriginatorInformation, null if not present.

getRecipientInfosback to summary
public RecipientInformationStore getRecipientInfos()

return a store of the intended recipients for this message

getUnauthAttrsback to summary
public AttributeTable getUnauthAttrs() throws IOException

return a table of the unauthenticated attributes indexed by the OID of the attribute.

org.bouncycastle.cms back to summary

pack-priv Class CMSAuthEnvelopedDataParser.LocalMacProvider

extends Object
implements MACProvider
Class Inheritance
  • java.lang.Object
  • org.bouncycastle.cms.CMSAuthEnvelopedDataParser.LocalMacProvider
All Implemented Interfaces
org.bouncycastle.cms.MACProvider

Field Summary

Modifier and TypeField and Description
private final AuthEnvelopedDataParser
private byte[]
private final CMSAuthEnvelopedDataParser
private CMSSecureReadableWithAAD

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public byte[]
public void
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

authEnvDataback to summary
private final AuthEnvelopedDataParser authEnvData
macback to summary
private byte[] mac
parserback to summary
private final CMSAuthEnvelopedDataParser parser
readableback to summary
private CMSSecureReadableWithAAD readable

Constructor Detail

LocalMacProviderback to summary
pack-priv LocalMacProvider(AuthEnvelopedDataParser authEnvData, CMSAuthEnvelopedDataParser parser)

Method Detail

getMACback to summary
public byte[] getMAC()

Implements org.bouncycastle.cms.MACProvider.getMAC.

initback to summary
public void init() throws IOException

Implements org.bouncycastle.cms.MACProvider.init.

setSecureReadableback to summary
pack-priv void setSecureReadable(CMSSecureReadableWithAAD secureReadable)