|
Bouncy Castle Cryptography Library 1.84 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder
Builder for the content encryptor in EnvelopedData - used to encrypt the actual transmitted content.
| Constructor Summary | |
JceCMSContentEncryptorBuilder(org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptionAlgId)
Constructor for a content encryptor builder based on an algorithm identifier and its contained parameters. |
|
JceCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID)
|
|
JceCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID,
int keySize)
|
|
| Method Summary | |
OutputEncryptor |
build()
Build the OutputEncryptor with an internally generated key. |
OutputEncryptor |
build(byte[] rawEncKey)
Build the OutputEncryptor using a pre-generated key given as a raw encoding. |
OutputEncryptor |
build(javax.crypto.SecretKey encKey)
Build the OutputEncryptor using a pre-generated key. |
JceCMSContentEncryptorBuilder |
setAlgorithmParameters(java.security.AlgorithmParameters algorithmParameters)
Provide a set of algorithm parameters for the content encryption cipher to use. |
JceCMSContentEncryptorBuilder |
setEnableSha256HKdf(boolean useSha256Hkdf)
|
JceCMSContentEncryptorBuilder |
setProvider(java.security.Provider provider)
Set the provider to use for content encryption. |
JceCMSContentEncryptorBuilder |
setProvider(java.lang.String providerName)
Set the provider to use for content encryption (by name) |
JceCMSContentEncryptorBuilder |
setSecureRandom(java.security.SecureRandom random)
Provide a specified source of randomness to be used for session key and IV/nonce generation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JceCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID)
public JceCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID,
int keySize)
public JceCMSContentEncryptorBuilder(org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptionAlgId)
encryptionAlgId - the full algorithm identifier for the encryption.| Method Detail |
public JceCMSContentEncryptorBuilder setEnableSha256HKdf(boolean useSha256Hkdf)
public JceCMSContentEncryptorBuilder setProvider(java.security.Provider provider)
provider - the provider object to use for cipher and default parameters creation.
public JceCMSContentEncryptorBuilder setProvider(java.lang.String providerName)
providerName - the name of the provider to use for cipher and default parameters creation.
public JceCMSContentEncryptorBuilder setSecureRandom(java.security.SecureRandom random)
random - the secure random to use.
public JceCMSContentEncryptorBuilder setAlgorithmParameters(java.security.AlgorithmParameters algorithmParameters)
algorithmParameters - algorithmParameters for content encryption.
public OutputEncryptor build()
throws CMSException
CMSException
public OutputEncryptor build(byte[] rawEncKey)
throws CMSException
rawEncKey - a raw byte encoding of the key to be used for encryption.
CMSException
public OutputEncryptor build(javax.crypto.SecretKey encKey)
throws CMSException
encKey - a pre-generated key to be used for encryption.
CMSException
|
Bouncy Castle Cryptography Library 1.84 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||