Bouncy Castle Cryptography Library 1.49

org.bouncycastle.cms.bc
Class BcPasswordRecipient

java.lang.Object
  extended by org.bouncycastle.cms.bc.BcPasswordRecipient
All Implemented Interfaces:
PasswordRecipient, Recipient
Direct Known Subclasses:
BcPasswordEnvelopedRecipient

public abstract class BcPasswordRecipient
extends java.lang.Object
implements PasswordRecipient

the RecipientInfo class for a recipient who has been sent a message encrypted using a password.


Field Summary
 
Fields inherited from interface org.bouncycastle.cms.PasswordRecipient
PKCS5_SCHEME2, PKCS5_SCHEME2_UTF8
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.bouncycastle.cms.PasswordRecipient
getRecipientOperator
 

Method Detail

setPasswordConversionScheme

public BcPasswordRecipient setPasswordConversionScheme(int schemeID)

extractSecretKey

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
Throws:
CMSException

getPasswordConversionScheme

public int getPasswordConversionScheme()
Specified by:
getPasswordConversionScheme in interface PasswordRecipient

getPassword

public char[] getPassword()
Specified by:
getPassword in interface PasswordRecipient

Bouncy Castle Cryptography Library 1.49