public class BcCMSContentEncryptorBuilder
extends java.lang.Object
| Constructor and Description |
|---|
BcCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID) |
BcCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID,
int keySize) |
| Modifier and Type | Method and Description |
|---|---|
OutputEncryptor |
build()
Build the OutputEncryptor with an internally generated key.
|
OutputEncryptor |
build(byte[] rawEncKey)
Build the OutputEncryptor using a pre-generated key.
|
BcCMSContentEncryptorBuilder |
setSecureRandom(java.security.SecureRandom random) |
public BcCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID)
public BcCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID,
int keySize)
public BcCMSContentEncryptorBuilder setSecureRandom(java.security.SecureRandom random)
public OutputEncryptor build() throws CMSException
CMSExceptionpublic OutputEncryptor build(byte[] rawEncKey) throws CMSException
rawEncKey - a raw byte encoding of the key to be used for encryption.CMSException