Bouncy Castle Cryptography 1.46

org.bouncycastle.cms
Class PasswordRecipientInfoGenerator

java.lang.Object
  extended by org.bouncycastle.cms.PasswordRecipientInfoGenerator
All Implemented Interfaces:
RecipientInfoGenerator
Direct Known Subclasses:
JcePasswordRecipientInfoGenerator

public abstract class PasswordRecipientInfoGenerator
extends java.lang.Object
implements RecipientInfoGenerator


Constructor Summary
protected PasswordRecipientInfoGenerator(ASN1ObjectIdentifier kekAlgorithm, char[] password)
           
protected PasswordRecipientInfoGenerator(ASN1ObjectIdentifier kekAlgorithm, char[] password, int keySize, int blockSize)
           
 
Method Summary
 RecipientInfo generate(org.bouncycastle.operator.GenericKey contentEncryptionKey)
           
protected abstract  byte[] generateEncryptedBytes(AlgorithmIdentifier algorithm, byte[] derivedKey, org.bouncycastle.operator.GenericKey contentEncryptionKey)
           
 PasswordRecipientInfoGenerator setPasswordConversionScheme(int schemeID)
           
 PasswordRecipientInfoGenerator setSaltAndIterationCount(byte[] salt, int iterationCount)
           
 PasswordRecipientInfoGenerator setSecureRandom(java.security.SecureRandom random)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordRecipientInfoGenerator

protected PasswordRecipientInfoGenerator(ASN1ObjectIdentifier kekAlgorithm,
                                         char[] password)

PasswordRecipientInfoGenerator

protected PasswordRecipientInfoGenerator(ASN1ObjectIdentifier kekAlgorithm,
                                         char[] password,
                                         int keySize,
                                         int blockSize)
Method Detail

setPasswordConversionScheme

public PasswordRecipientInfoGenerator setPasswordConversionScheme(int schemeID)

setSaltAndIterationCount

public PasswordRecipientInfoGenerator setSaltAndIterationCount(byte[] salt,
                                                               int iterationCount)

setSecureRandom

public PasswordRecipientInfoGenerator setSecureRandom(java.security.SecureRandom random)

generate

public RecipientInfo generate(org.bouncycastle.operator.GenericKey contentEncryptionKey)
                       throws CMSException
Specified by:
generate in interface RecipientInfoGenerator
Throws:
CMSException

generateEncryptedBytes

protected abstract byte[] generateEncryptedBytes(AlgorithmIdentifier algorithm,
                                                 byte[] derivedKey,
                                                 org.bouncycastle.operator.GenericKey contentEncryptionKey)
                                          throws CMSException
Throws:
CMSException

Bouncy Castle Cryptography 1.46