org.bouncycastle.cms
public class CMSAuthenticatedGenerator extends CMSEnvelopedGenerator
Modifier and Type | Class and Description |
---|---|
protected static class |
CMSAuthenticatedGenerator.MacOutputStream |
AES128_CBC, AES128_WRAP, AES192_CBC, AES192_WRAP, AES256_CBC, AES256_WRAP, CAMELLIA128_CBC, CAMELLIA128_WRAP, CAMELLIA192_CBC, CAMELLIA192_WRAP, CAMELLIA256_CBC, CAMELLIA256_WRAP, CAST5_CBC, DES_EDE3_CBC, DES_EDE3_WRAP, ECDH_SHA1KDF, ECMQV_SHA1KDF, IDEA_CBC, RC2_CBC, SEED_CBC, SEED_WRAP
Constructor and Description |
---|
CMSAuthenticatedGenerator()
base constructor
|
CMSAuthenticatedGenerator(java.security.SecureRandom rand)
constructor allowing specific source of randomness
|
Modifier and Type | Method and Description |
---|---|
protected java.security.spec.AlgorithmParameterSpec |
generateParameterSpec(java.lang.String encryptionOID,
javax.crypto.SecretKey encKey,
java.security.Provider encProvider) |
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getAlgorithmIdentifier(java.lang.String encryptionOID,
java.security.spec.AlgorithmParameterSpec paramSpec,
java.security.Provider provider) |
addKEKRecipient, addKeyAgreementRecipient, addKeyAgreementRecipient, addKeyTransRecipient, addKeyTransRecipient, addPasswordRecipient, generateParameters, getAlgorithmIdentifier
public CMSAuthenticatedGenerator()
public CMSAuthenticatedGenerator(java.security.SecureRandom rand)
rand
- instance of SecureRandom to useprotected org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier(java.lang.String encryptionOID, java.security.spec.AlgorithmParameterSpec paramSpec, java.security.Provider provider) throws java.io.IOException, java.security.NoSuchAlgorithmException, java.security.spec.InvalidParameterSpecException
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.spec.InvalidParameterSpecException
protected java.security.spec.AlgorithmParameterSpec generateParameterSpec(java.lang.String encryptionOID, javax.crypto.SecretKey encKey, java.security.Provider encProvider) throws CMSException
CMSException