package

org.bouncycastle.cms

A package for processing RFC 3852 Cryptographic Message Syntax (CMS) objects - also referred to as PKCS#7 (formerly RFC 2630, 3369).

Interfaces

CMSAttributeTableGenerator Note: The SIGNATURE parameter is only available when generating unsigned attributes. 
CMSProcessable Use CMSTypedData instead of this. 
CMSTypedData  
KEKRecipient  
KeyAgreeRecipient  
KeyTransRecipient  
PasswordRecipient  
Recipient  
RecipientInfoGenerator  

Classes

CMSAbsentContent a holding class for a byte array of data to be processed. 
CMSAlgorithm  
CMSAuthenticatedData containing class for an CMS Authenticated Data object  
CMSAuthenticatedDataGenerator General class for generating a CMS authenticated-data message. 
CMSAuthenticatedDataParser Parsing class for an CMS Authenticated Data object from an input stream. 
CMSAuthenticatedDataStreamGenerator General class for generating a CMS authenticated-data message stream. 
CMSAuthenticatedGenerator  
CMSCompressedData containing class for an CMS Compressed Data object
     CMSCompressedData cd = new CMSCompressedData(inputStream);

     process(cd.getContent(new ZlibExpanderProvider()));
 
 
CMSCompressedDataGenerator General class for generating a compressed CMS message. 
CMSCompressedDataParser Class for reading a CMS Compressed Data stream. 
CMSCompressedDataStreamGenerator General class for generating a compressed CMS message stream. 
CMSConfig  
CMSContentInfoParser  
CMSEnvelopedData containing class for an CMS Enveloped Data object

Example of use - assuming the first recipient matches the private key we have. 

CMSEnvelopedDataGenerator General class for generating a CMS enveloped-data message. 
CMSEnvelopedDataParser Parsing class for an CMS Enveloped Data object from an input stream. 
CMSEnvelopedDataStreamGenerator General class for generating a CMS enveloped-data message stream. 
CMSEnvelopedGenerator General class for generating a CMS enveloped-data message. 
CMSPBEKey  
CMSProcessableByteArray a holding class for a byte array of data to be processed. 
CMSProcessableFile a holding class for a file of data to be processed. 
CMSSignedData general class for handling a pkcs7-signature message. 
CMSSignedDataGenerator general class for generating a pkcs7-signature message. 
CMSSignedDataParser Parsing class for an CMS Signed Data object from an input stream. 
CMSSignedDataStreamGenerator General class for generating a pkcs7-signature message stream. 
CMSSignedGenerator  
CMSTypedStream  
DefaultAuthenticatedAttributeTableGenerator Default authenticated attributes generator. 
DefaultSignedAttributeTableGenerator Default signed attributes generator. 
KEKRecipientId  
KEKRecipientInfoGenerator  
KEKRecipientInformation the RecipientInfo class for a recipient who has been sent a message encrypted using a secret key known to the other side. 
KeyAgreeRecipientId  
KeyAgreeRecipientInfoGenerator  
KeyAgreeRecipientInformation the RecipientInfo class for a recipient who has been sent a message encrypted using key agreement. 
KeyTransRecipientId  
KeyTransRecipientInfoGenerator  
KeyTransRecipientInformation the KeyTransRecipientInformation class for a recipient who has been sent a secret key encrypted using their public key that needs to be used to extract the message. 
PasswordRecipientId  
PasswordRecipientInfoGenerator  
PasswordRecipientInformation the RecipientInfo class for a recipient who has been sent a message encrypted using a password. 
PKCS5Scheme2PBEKey PKCS5 scheme-2 - password converted to bytes assuming ASCII. 
PKCS5Scheme2UTF8PBEKey PKCS5 scheme-2 - password converted to bytes using UTF-8. 
RecipientId  
RecipientInformation  
RecipientInformationStore  
RecipientOperator  
SignerId a basic index for a signer. 
SignerInfoGenerator  
SignerInfoGeneratorBuilder  
SignerInformation an expanded SignerInfo block from a CMS Signed message  
SignerInformationStore  
SignerInformationVerifier  
SimpleAttributeTableGenerator Basic generator that just returns a preconstructed attribute table  

Exceptions