public class BcPGPDataEncryptorBuilder extends java.lang.Object implements PGPDataEncryptorBuilder
| Constructor and Description |
|---|
BcPGPDataEncryptorBuilder(int encAlgorithm) |
| Modifier and Type | Method and Description |
|---|---|
PGPDataEncryptor |
build(byte[] keyBytes) |
int |
getAlgorithm() |
java.security.SecureRandom |
getSecureRandom() |
BcPGPDataEncryptorBuilder |
setSecureRandom(java.security.SecureRandom random)
Provide a user defined source of randomness.
|
BcPGPDataEncryptorBuilder |
setWithIntegrityPacket(boolean withIntegrityPacket)
Determine whether or not the resulting encrypted data will be protected using an integrity packet.
|
public BcPGPDataEncryptorBuilder setWithIntegrityPacket(boolean withIntegrityPacket)
withIntegrityPacket - true if an integrity packet is to be included, false otherwise.public BcPGPDataEncryptorBuilder setSecureRandom(java.security.SecureRandom random)
random - the secure random to be used.public int getAlgorithm()
getAlgorithm in interface PGPDataEncryptorBuilderpublic java.security.SecureRandom getSecureRandom()
getSecureRandom in interface PGPDataEncryptorBuilderpublic PGPDataEncryptor build(byte[] keyBytes) throws PGPException
build in interface PGPDataEncryptorBuilderPGPException