Class JcePasswordRecipientInfoGenerator
java.lang.Object
org.bouncycastle.cms.PasswordRecipientInfoGenerator
org.bouncycastle.cms.jcajce.JcePasswordRecipientInfoGenerator
- All Implemented Interfaces:
RecipientInfoGenerator
-
Field Summary
Fields inherited from class PasswordRecipientInfoGenerator
password -
Constructor Summary
ConstructorsConstructorDescriptionJcePasswordRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier kekAlgorithm, char[] password) -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]calculateDerivedKey(int schemeID, org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm, int keySize) byte[]generateEncryptedBytes(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, byte[] derivedKey, GenericKey contentEncryptionKey) setProvider(String providerName) setProvider(Provider provider) Methods inherited from class PasswordRecipientInfoGenerator
generate, setPasswordConversionScheme, setPRF, setSaltAndIterationCount, setSecureRandom
-
Constructor Details
-
JcePasswordRecipientInfoGenerator
public JcePasswordRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier kekAlgorithm, char[] password)
-
-
Method Details
-
setProvider
-
setProvider
-
calculateDerivedKey
protected byte[] calculateDerivedKey(int schemeID, org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm, int keySize) throws CMSException - Specified by:
calculateDerivedKeyin classPasswordRecipientInfoGenerator- Throws:
CMSException
-
generateEncryptedBytes
public byte[] generateEncryptedBytes(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, byte[] derivedKey, GenericKey contentEncryptionKey) throws CMSException - Specified by:
generateEncryptedBytesin classPasswordRecipientInfoGenerator- Throws:
CMSException
-