|
Bouncy Castle Cryptography Library 1.71 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.cms.CMSEncryptedGenerator | +--org.bouncycastle.cms.CMSEncryptedDataGenerator
General class for generating a CMS encrypted-data message. A simple example of usage. CMSTypedData msg = new CMSProcessableByteArray("Hello World!".getBytes()); CMSEncryptedDataGenerator edGen = new CMSEncryptedDataGenerator(); CMSEncryptedData ed = edGen.generate( msg, new JceCMSContentEncryptorBuilder(CMSAlgorithm.DES_EDE3_CBC) .setProvider("BC").build());
Fields inherited from class org.bouncycastle.cms.CMSEncryptedGenerator |
unprotectedAttributeGenerator |
Constructor Summary | |
CMSEncryptedDataGenerator()
base constructor |
Method Summary | |
CMSEncryptedData |
generate(CMSTypedData content,
OutputEncryptor contentEncryptor)
generate an encrypted object that contains an CMS Encrypted Data structure. |
Methods inherited from class org.bouncycastle.cms.CMSEncryptedGenerator |
setUnprotectedAttributeGenerator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CMSEncryptedDataGenerator()
Method Detail |
public CMSEncryptedData generate(CMSTypedData content, OutputEncryptor contentEncryptor) throws CMSException
content
- the content to be encryptedcontentEncryptor
- the symmetric key based encryptor to encrypt the content with.
|
Bouncy Castle Cryptography Library 1.71 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |