Top Fields Constructors Methods
org.bouncycastle.cms

public abstract Class PasswordRecipientInfoGenerator

extends Object
implements RecipientInfoGenerator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.cms.RecipientInfoGenerator
Known Direct Subclasses
org.bouncycastle.cms.bc.BcPasswordRecipientInfoGenerator, org.bouncycastle.cms.jcajce.JcePasswordRecipientInfoGenerator
Imports
java.security.SecureRandom, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1ObjectIdentifier, .ASN1OctetString, .DEROctetString, .DERSequence, org.bouncycastle.asn1.cms.PasswordRecipientInfo, .RecipientInfo, org.bouncycastle.asn1.pkcs.PBKDF2Params, .PKCSObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.operator.GenericKey, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
private int
private int
private ASN1ObjectIdentifier
private AlgorithmIdentifier
private int
protected char[]
private PasswordRecipient.PRF
private SecureRandom
private byte[]
private int

Constructor Summary

AccessConstructor and Description
protected
protected
PasswordRecipientInfoGenerator(ASN1ObjectIdentifier kekAlgorithm, char[] password, int keySize, int blockSize)

Method Summary

Modifier and TypeMethod and Description
protected abstract byte[]
calculateDerivedKey(int schemeID, AlgorithmIdentifier derivationAlgorithm, int keySize)

public RecipientInfo
protected abstract byte[]
generateEncryptedBytes(AlgorithmIdentifier algorithm, byte[] derivedKey, GenericKey contentEncryptionKey)

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

public PasswordRecipientInfoGenerator
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

blockSizeback to summary
private int blockSize
iterationCountback to summary
private int iterationCount
kekAlgorithmback to summary
private ASN1ObjectIdentifier kekAlgorithm
keyDerivationAlgorithmback to summary
private AlgorithmIdentifier keyDerivationAlgorithm
keySizeback to summary
private int keySize
passwordback to summary
protected char[] password
prfback to summary
private PasswordRecipient.PRF prf
randomback to summary
private SecureRandom random
saltback to summary
private byte[] salt
schemeIDback to summary
private int schemeID

Constructor Detail

PasswordRecipientInfoGeneratorback to summary
protected PasswordRecipientInfoGenerator(ASN1ObjectIdentifier kekAlgorithm, char[] password)
PasswordRecipientInfoGeneratorback to summary
protected PasswordRecipientInfoGenerator(ASN1ObjectIdentifier kekAlgorithm, char[] password, int keySize, int blockSize)

Method Detail

calculateDerivedKeyback to summary
protected abstract byte[] calculateDerivedKey(int schemeID, AlgorithmIdentifier derivationAlgorithm, int keySize) throws CMSException
generateback to summary
public RecipientInfo generate(GenericKey contentEncryptionKey) throws CMSException

Implements org.bouncycastle.cms.RecipientInfoGenerator.generate.

generateEncryptedBytesback to summary
protected abstract byte[] generateEncryptedBytes(AlgorithmIdentifier algorithm, byte[] derivedKey, GenericKey contentEncryptionKey) throws CMSException
getKeySizeback to summary
private static int getKeySize(ASN1ObjectIdentifier kekAlgorithm)
setPasswordConversionSchemeback to summary
public PasswordRecipientInfoGenerator setPasswordConversionScheme(int schemeID)
setPRFback to summary
public PasswordRecipientInfoGenerator setPRF(PasswordRecipient.PRF prf)
setSaltAndIterationCountback to summary
public PasswordRecipientInfoGenerator setSaltAndIterationCount(byte[] salt, int iterationCount)
setSecureRandomback to summary
public PasswordRecipientInfoGenerator setSecureRandom(SecureRandom random)