public class CMSAuthenticatedGenerator extends CMSEnvelopedGenerator
Modifier and Type | Field and Description |
---|---|
protected CMSAttributeTableGenerator |
authGen |
protected CMSAttributeTableGenerator |
unauthGen |
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, unprotectedAttributeGenerator
Constructor and Description |
---|
CMSAuthenticatedGenerator()
base constructor
|
CMSAuthenticatedGenerator(SecureRandom rand)
constructor allowing specific source of randomness
|
Modifier and Type | Method and Description |
---|---|
protected AlgorithmParameterSpec |
generateParameterSpec(String encryptionOID,
SecretKey encKey,
Provider encProvider) |
protected AlgorithmIdentifier |
getAlgorithmIdentifier(String encryptionOID,
AlgorithmParameterSpec paramSpec,
Provider provider) |
protected Map |
getBaseParameters(DERObjectIdentifier contentType,
AlgorithmIdentifier digAlgId,
byte[] hash) |
void |
setAuthenticatedAttributeGenerator(CMSAttributeTableGenerator authGen) |
void |
setUnauthenticatedAttributeGenerator(CMSAttributeTableGenerator unauthGen) |
addKEKRecipient, addKEKRecipient, addKeyAgreementRecipient, addKeyAgreementRecipient, addKeyAgreementRecipients, addKeyAgreementRecipients, addKeyTransRecipient, addKeyTransRecipient, addPasswordRecipient, addRecipientInfoGenerator, generateParameters, getAlgorithmIdentifier, setUnprotectedAttributeGenerator
protected CMSAttributeTableGenerator authGen
protected CMSAttributeTableGenerator unauthGen
public CMSAuthenticatedGenerator()
public CMSAuthenticatedGenerator(SecureRandom rand)
rand
- instance of SecureRandom to useprotected AlgorithmIdentifier getAlgorithmIdentifier(String encryptionOID, AlgorithmParameterSpec paramSpec, Provider provider) throws IOException, NoSuchAlgorithmException, InvalidParameterSpecException
protected AlgorithmParameterSpec generateParameterSpec(String encryptionOID, SecretKey encKey, Provider encProvider) throws CMSException
CMSException
public void setAuthenticatedAttributeGenerator(CMSAttributeTableGenerator authGen)
public void setUnauthenticatedAttributeGenerator(CMSAttributeTableGenerator unauthGen)
protected Map getBaseParameters(DERObjectIdentifier contentType, AlgorithmIdentifier digAlgId, byte[] hash)
Copyright © 2015. All rights reserved.