Package org.bouncycastle.cms.bc
Class BcCMSContentEncryptorBuilder
java.lang.Object
org.bouncycastle.cms.bc.BcCMSContentEncryptorBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionBcCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID) BcCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID, int keySize) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the OutputEncryptor with an internally generated key.build(byte[] rawEncKey) Build the OutputEncryptor using a pre-generated key.setSecureRandom(SecureRandom random)
-
Constructor Details
-
BcCMSContentEncryptorBuilder
public BcCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID) -
BcCMSContentEncryptorBuilder
public BcCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID, int keySize)
-
-
Method Details
-
setSecureRandom
-
build
Build the OutputEncryptor with an internally generated key.- Returns:
- an OutputEncryptor configured to use an internal key.
- Throws:
CMSException
-
build
Build the OutputEncryptor using a pre-generated key.- Parameters:
rawEncKey- a raw byte encoding of the key to be used for encryption.- Returns:
- an OutputEncryptor configured to use rawEncKey.
- Throws:
CMSException
-