Top Fields Constructors Methods
org.bouncycastle.cms

public Class CMSAuthEnvelopedDataGenerator

extends CMSAuthEnvelopedGenerator
Class Inheritance
Imports
java.io.ByteArrayOutputStream, .IOException, .OutputStream, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Set, .DEROctetString, .DERSet, org.bouncycastle.asn1.cms.AuthEnvelopedData, .CMSObjectIdentifiers, .ContentInfo, .EncryptedContentInfo, org.bouncycastle.operator.OutputAEADEncryptor

Field Summary

Inherited from org.bouncycastle.cms.CMSAuthEnvelopedGenerator:
AES128_GCMAES192_GCMAES256_GCMauthAttrsGeneratororiginatorInfounauthAttrsGenerator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private CMSAuthEnvelopedData
doGenerate(CMSTypedData content, OutputAEADEncryptor contentEncryptor)

public CMSAuthEnvelopedData
generate(CMSTypedData
the content to be encrypted
content
,
OutputAEADEncryptor
the symmetric key based encryptor to encrypt the content with.
contentEncryptor
)

generate an auth-enveloped object that contains an CMS Enveloped Data object using the given provider.

Inherited from org.bouncycastle.cms.CMSAuthEnvelopedGenerator:
addRecipientInfoGeneratorsetAuthenticatedAttributeGeneratorsetOriginatorInfosetUnauthenticatedAttributeGenerator

Constructor Detail

CMSAuthEnvelopedDataGeneratorback to summary
public CMSAuthEnvelopedDataGenerator()

base constructor

Method Detail

doGenerateback to summary
private CMSAuthEnvelopedData doGenerate(CMSTypedData content, OutputAEADEncryptor contentEncryptor) throws CMSException
generateback to summary
public CMSAuthEnvelopedData generate(CMSTypedData content, OutputAEADEncryptor contentEncryptor) throws CMSException

generate an auth-enveloped object that contains an CMS Enveloped Data object using the given provider.

Parameters
content:CMSTypedData

the content to be encrypted

contentEncryptor:OutputAEADEncryptor

the symmetric key based encryptor to encrypt the content with.