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(org.bouncycastle.asn1.ASN1ObjectIdentifier kekAlgorithm,
char[] password) |
protected |
PasswordRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier kekAlgorithm,
char[] password,
int keySize,
int blockSize) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract byte[] |
calculateDerivedKey(int schemeID,
org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm,
int keySize) |
org.bouncycastle.asn1.cms.RecipientInfo |
generate(GenericKey contentEncryptionKey) |
protected abstract byte[] |
generateEncryptedBytes(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm,
byte[] derivedKey,
GenericKey contentEncryptionKey) |
PasswordRecipientInfoGenerator |
setPasswordConversionScheme(int schemeID) |
PasswordRecipientInfoGenerator |
setSaltAndIterationCount(byte[] salt,
int iterationCount) |
PasswordRecipientInfoGenerator |
setSecureRandom(java.security.SecureRandom random) |
protected PasswordRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier kekAlgorithm,
char[] password)
protected PasswordRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier kekAlgorithm,
char[] password,
int keySize,
int blockSize)
public PasswordRecipientInfoGenerator setPasswordConversionScheme(int schemeID)
public PasswordRecipientInfoGenerator setSaltAndIterationCount(byte[] salt, int iterationCount)
public PasswordRecipientInfoGenerator setSecureRandom(java.security.SecureRandom random)
public org.bouncycastle.asn1.cms.RecipientInfo generate(GenericKey contentEncryptionKey) throws CMSException
generate in interface RecipientInfoGeneratorCMSExceptionprotected abstract byte[] calculateDerivedKey(int schemeID,
org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm,
int keySize)
throws CMSException
CMSExceptionprotected abstract byte[] generateEncryptedBytes(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm,
byte[] derivedKey,
GenericKey contentEncryptionKey)
throws CMSException
CMSException