Class JcePasswordRecipient
java.lang.Object
org.bouncycastle.cms.jcajce.JcePasswordRecipient
- All Implemented Interfaces:
PasswordRecipient, Recipient
- Direct Known Subclasses:
JcePasswordAuthenticatedRecipient, JcePasswordAuthEnvelopedRecipient, JcePasswordEnvelopedRecipient
the RecipientInfo class for a recipient who has been sent a message
encrypted using a password.
-
Nested Class Summary
Nested classes/interfaces inherited from interface PasswordRecipient
PasswordRecipient.PRF -
Field Summary
FieldsFields inherited from interface PasswordRecipient
PKCS5_SCHEME2, PKCS5_SCHEME2_UTF8 -
Method Summary
Modifier and TypeMethodDescriptionbyte[]calculateDerivedKey(int schemeID, org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm, int keySize) protected KeyextractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] derivedKey, byte[] encryptedContentEncryptionKey) char[]intsetPasswordConversionScheme(int schemeID) setProvider(String providerName) setProvider(Provider provider) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PasswordRecipient
getRecipientOperator
-
Field Details
-
helper
-
-
Method Details
-
setPasswordConversionScheme
-
setProvider
-
setProvider
-
extractSecretKey
protected Key extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] derivedKey, byte[] encryptedContentEncryptionKey) throws CMSException - Throws:
CMSException
-
calculateDerivedKey
public byte[] calculateDerivedKey(int schemeID, org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm, int keySize) throws CMSException - Specified by:
calculateDerivedKeyin interfacePasswordRecipient- Throws:
CMSException
-
getPasswordConversionScheme
public int getPasswordConversionScheme()- Specified by:
getPasswordConversionSchemein interfacePasswordRecipient
-
getPassword
public char[] getPassword()- Specified by:
getPasswordin interfacePasswordRecipient
-