public abstract class PasswordRecipientInfoGenerator extends java.lang.Object implements RecipientInfoGenerator
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
password |
| Modifier | Constructor and Description |
|---|---|
protected |
PasswordRecipientInfoGenerator(ASN1ObjectIdentifier kekAlgorithm,
char[] password) |
protected |
PasswordRecipientInfoGenerator(ASN1ObjectIdentifier kekAlgorithm,
char[] password,
int keySize,
int blockSize) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract byte[] |
calculateDerivedKey(int schemeID,
AlgorithmIdentifier derivationAlgorithm,
int keySize) |
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 |
setPRF(PasswordRecipient.PRF prf) |
PasswordRecipientInfoGenerator |
setSaltAndIterationCount(byte[] salt,
int iterationCount) |
PasswordRecipientInfoGenerator |
setSecureRandom(java.security.SecureRandom random) |
protected PasswordRecipientInfoGenerator(ASN1ObjectIdentifier kekAlgorithm,
char[] password)
protected PasswordRecipientInfoGenerator(ASN1ObjectIdentifier kekAlgorithm,
char[] password,
int keySize,
int blockSize)
public PasswordRecipientInfoGenerator setPasswordConversionScheme(int schemeID)
public PasswordRecipientInfoGenerator setPRF(PasswordRecipient.PRF prf)
public PasswordRecipientInfoGenerator setSaltAndIterationCount(byte[] salt, int iterationCount)
public PasswordRecipientInfoGenerator setSecureRandom(java.security.SecureRandom random)
public RecipientInfo generate(org.bouncycastle.operator.GenericKey contentEncryptionKey)
throws CMSException
generate in interface RecipientInfoGeneratorCMSExceptionprotected abstract byte[] calculateDerivedKey(int schemeID,
AlgorithmIdentifier derivationAlgorithm,
int keySize)
throws CMSException
CMSExceptionprotected abstract byte[] generateEncryptedBytes(AlgorithmIdentifier algorithm,
byte[] derivedKey,
org.bouncycastle.operator.GenericKey contentEncryptionKey)
throws CMSException
CMSException