public abstract class PasswordRecipientInfoGenerator extends Object implements RecipientInfoGenerator
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 |
---|---|
RecipientInfo |
generate(GenericKey contentEncryptionKey) |
protected abstract byte[] |
generateEncryptedBytes(AlgorithmIdentifier algorithm,
byte[] derivedKey,
GenericKey contentEncryptionKey) |
PasswordRecipientInfoGenerator |
setPasswordConversionScheme(int schemeID) |
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 setSaltAndIterationCount(byte[] salt, int iterationCount)
public PasswordRecipientInfoGenerator setSecureRandom(SecureRandom random)
public RecipientInfo generate(GenericKey contentEncryptionKey) throws CMSException
generate
in interface RecipientInfoGenerator
CMSException
protected abstract byte[] generateEncryptedBytes(AlgorithmIdentifier algorithm, byte[] derivedKey, GenericKey contentEncryptionKey) throws CMSException
CMSException
Copyright © 2015. All rights reserved.