public class CMSEnvelopedDataGenerator extends CMSEnvelopedGenerator
CMSEnvelopedDataGenerator fact = new CMSEnvelopedDataGenerator(); fact.addKeyTransRecipient(cert); CMSEnvelopedData data = fact.generate(content, algorithm, GammaTechProvider.PROVIDER_NAME);
CMSEnvelopedGenerator.RecipientInf
CAMELLIA128_CBC, CAMELLIA128_WRAP, CAMELLIA192_CBC, CAMELLIA192_WRAP, CAMELLIA256_CBC, CAMELLIA256_WRAP, CAST5_CBC, DES_EDE3_CBC, DES_EDE3_WRAP, ECDH_SHA1KDF, IDEA_CBC, rand, RC2_CBC, recipientInfs, SEED_CBC, SEED_WRAP
Constructor and Description |
---|
CMSEnvelopedDataGenerator()
base constructor
|
Modifier and Type | Method and Description |
---|---|
CMSEnvelopedData |
generate(CMSProcessable content,
java.lang.String encryptionOID,
int keySize,
java.lang.String provider)
generate an enveloped object that contains an CMS Enveloped Data
object using the given provider.
|
private CMSEnvelopedData |
generate(CMSProcessable content,
java.lang.String encryptionOID,
javax.crypto.KeyGenerator keyGen,
java.lang.String provider)
generate an enveloped object that contains an CMS Enveloped Data
object using the given provider and the passed in key generator.
|
CMSEnvelopedData |
generate(CMSProcessable content,
java.lang.String encryptionOID,
java.lang.String provider)
generate an enveloped object that contains an CMS Enveloped Data
object using the given provider.
|
addKEKRecipient, addKeyAgreementRecipient, addKeyTransRecipient, addKeyTransRecipient, addPasswordRecipient, generateParameters, getAlgorithmIdentifier
private CMSEnvelopedData generate(CMSProcessable content, java.lang.String encryptionOID, javax.crypto.KeyGenerator keyGen, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, CMSException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
CMSException
public CMSEnvelopedData generate(CMSProcessable content, java.lang.String encryptionOID, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, CMSException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
CMSException
public CMSEnvelopedData generate(CMSProcessable content, java.lang.String encryptionOID, int keySize, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, CMSException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
CMSException
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.