public abstract class PasswordRecipientInfoGenerator extends 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(GenericKey contentEncryptionKey) |
protected abstract byte[] |
generateEncryptedBytes(AlgorithmIdentifier algorithm,
byte[] derivedKey,
GenericKey contentEncryptionKey) |
PasswordRecipientInfoGenerator |
setPasswordConversionScheme(int schemeID) |
PasswordRecipientInfoGenerator |
setPRF(PasswordRecipient.PRF prf) |
PasswordRecipientInfoGenerator |
setSaltAndIterationCount(byte[] salt,
int iterationCount) |
PasswordRecipientInfoGenerator |
setSecureRandom(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(SecureRandom random)
public RecipientInfo generate(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, GenericKey contentEncryptionKey) throws CMSException
CMSExceptionCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.