public abstract class BcPasswordRecipient extends java.lang.Object implements PasswordRecipient
PasswordRecipient.PRF
PKCS5_SCHEME2, PKCS5_SCHEME2_UTF8
Modifier and Type | Method and Description |
---|---|
byte[] |
calculateDerivedKey(int schemeID,
org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm,
int keySize) |
protected org.bouncycastle.crypto.params.KeyParameter |
extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm,
byte[] derivedKey,
byte[] encryptedContentEncryptionKey) |
char[] |
getPassword() |
int |
getPasswordConversionScheme() |
BcPasswordRecipient |
setPasswordConversionScheme(int schemeID) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRecipientOperator
public BcPasswordRecipient setPasswordConversionScheme(int schemeID)
protected org.bouncycastle.crypto.params.KeyParameter extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] derivedKey, byte[] encryptedContentEncryptionKey) throws CMSException
CMSException
public byte[] calculateDerivedKey(int schemeID, org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm, int keySize) throws CMSException
calculateDerivedKey
in interface PasswordRecipient
CMSException
public int getPasswordConversionScheme()
getPasswordConversionScheme
in interface PasswordRecipient
public char[] getPassword()
getPassword
in interface PasswordRecipient