java.lang.Object | |
↳ | org.bouncycastle.cms.CMSEnvelopedGenerator |
Known Direct Subclasses |
Known Indirect Subclasses |
General class for generating a CMS enveloped-data message.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CAST5_CBC | ||||||||||
String | IDEA_CBC |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AES128_CBC | |||||||||||
AES128_WRAP | |||||||||||
AES192_CBC | |||||||||||
AES192_WRAP | |||||||||||
AES256_CBC | |||||||||||
AES256_WRAP | |||||||||||
CAMELLIA128_CBC | |||||||||||
CAMELLIA128_WRAP | |||||||||||
CAMELLIA192_CBC | |||||||||||
CAMELLIA192_WRAP | |||||||||||
CAMELLIA256_CBC | |||||||||||
CAMELLIA256_WRAP | |||||||||||
DES_EDE3_CBC | |||||||||||
DES_EDE3_WRAP | |||||||||||
ECDH_SHA1KDF | |||||||||||
ECMQV_SHA1KDF | |||||||||||
RC2_CBC | |||||||||||
SEED_CBC | |||||||||||
SEED_WRAP | |||||||||||
unprotectedAttributeGenerator |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
base constructor
| |||||||||||
constructor allowing specific source of randomness
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
use the addRecipientGenerator and JceKEKRecipientInfoGenerator
| |||||||||||
This method is deprecated.
use the addRecipientGenerator and JceKEKRecipientInfoGenerator
| |||||||||||
This method is deprecated.
use the addRecipientGenerator and JceKeyAgreeRecipientInfoGenerator
| |||||||||||
This method is deprecated.
use the addRecipientGenerator and JceKeyAgreeRecipientInfoGenerator
| |||||||||||
This method is deprecated.
use the addRecipientGenerator and JceKeyAgreeRecipientInfoGenerator
| |||||||||||
This method is deprecated.
use the addRecipientGenerator and JceKeyAgreeRecipientInfoGenerator
| |||||||||||
This method is deprecated.
use the addRecipientGenerator and JceKeyTransRecipientInfoGenerator
| |||||||||||
This method is deprecated.
use the addRecipientGenerator and JceKeyTransRecipientInfoGenerator
| |||||||||||
This method is deprecated.
use addRecipientGenerator and JcePasswordRecipientInfoGenerator
| |||||||||||
Add a generator to produce the recipient info required.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
base constructor
constructor allowing specific source of randomness
rand | instance of SecureRandom to use |
---|
This method is deprecated.
use the addRecipientGenerator and JceKEKRecipientInfoGenerator
add a KEK recipient.
key | the secret key to use for wrapping |
---|---|
keyIdentifier | the byte string that identifies the key |
This method is deprecated.
use the addRecipientGenerator and JceKEKRecipientInfoGenerator
add a KEK recipient.
key | the secret key to use for wrapping |
---|---|
kekIdentifier | a KEKIdentifier structure (identifies the key) |
This method is deprecated.
use the addRecipientGenerator and JceKeyAgreeRecipientInfoGenerator
Add a key agreement based recipient.
agreementAlgorithm | key agreement algorithm to use. |
---|---|
senderPrivateKey | private key to initialise sender side of agreement with. |
senderPublicKey | sender public key to include with message. |
recipientCert | recipient's public key certificate. |
cekWrapAlgorithm | OID for key wrapping algorithm to use. |
provider | provider to use for the agreement calculation. |
NoSuchProviderException | if the specified provider cannot be found |
---|---|
NoSuchAlgorithmException | if the algorithm requested cannot be found |
InvalidKeyException | if the keys are inappropriate for the algorithm specified |
This method is deprecated.
use the addRecipientGenerator and JceKeyAgreeRecipientInfoGenerator
Add a key agreement based recipient.
agreementAlgorithm | key agreement algorithm to use. |
---|---|
senderPrivateKey | private key to initialise sender side of agreement with. |
senderPublicKey | sender public key to include with message. |
recipientCert | recipient's public key certificate. |
cekWrapAlgorithm | OID for key wrapping algorithm to use. |
provider | provider to use for the agreement calculation. |
NoSuchAlgorithmException | if the algorithm requested cannot be found |
---|---|
InvalidKeyException | if the keys are inappropriate for the algorithm specified |
This method is deprecated.
use the addRecipientGenerator and JceKeyAgreeRecipientInfoGenerator
Add multiple key agreement based recipients (sharing a single KeyAgreeRecipientInfo structure).
agreementAlgorithm | key agreement algorithm to use. |
---|---|
senderPrivateKey | private key to initialise sender side of agreement with. |
senderPublicKey | sender public key to include with message. |
recipientCerts | recipients' public key certificates. |
cekWrapAlgorithm | OID for key wrapping algorithm to use. |
provider | provider to use for the agreement calculation. |
NoSuchAlgorithmException | if the algorithm requested cannot be found |
---|---|
InvalidKeyException | if the keys are inappropriate for the algorithm specified |
NoSuchProviderException |
This method is deprecated.
use the addRecipientGenerator and JceKeyAgreeRecipientInfoGenerator
Add multiple key agreement based recipients (sharing a single KeyAgreeRecipientInfo structure).
agreementAlgorithm | key agreement algorithm to use. |
---|---|
senderPrivateKey | private key to initialise sender side of agreement with. |
senderPublicKey | sender public key to include with message. |
recipientCerts | recipients' public key certificates. |
cekWrapAlgorithm | OID for key wrapping algorithm to use. |
provider | provider to use for the agreement calculation. |
NoSuchAlgorithmException | if the algorithm requested cannot be found |
---|---|
InvalidKeyException | if the keys are inappropriate for the algorithm specified |
This method is deprecated.
use the addRecipientGenerator and JceKeyTransRecipientInfoGenerator
add a recipient
key | the public key used by the recipient |
---|---|
subKeyId | the identifier for the recipient's public key |
IllegalArgumentException | if there is a problem with the key |
---|
This method is deprecated.
use the addRecipientGenerator and JceKeyTransRecipientInfoGenerator
add a recipient.
cert | recipient's public key certificate |
---|
IllegalArgumentException | if there is a problem with the certificate |
---|
This method is deprecated.
use addRecipientGenerator and JcePasswordRecipientInfoGenerator
pbeKey | PBE key |
---|---|
kekAlgorithmOid | key encryption algorithm to use. |
Add a generator to produce the recipient info required.
recipientGenerator | a generator of a recipient info object. |
---|
CMSException |
---|
IOException |
---|