|
Bouncy Castle Cryptography 1.51 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PGPDataEncryptorBuilder
A builder for PGPDataEncryptor
instances, which can be used to encrypt data objects.
Method Summary | |
---|---|
PGPDataEncryptor |
build(byte[] keyBytes)
Builds a data encryptor using the algorithm configured for this builder. |
int |
getAlgorithm()
The encryption algorithm used by data encryptors created by this builder. |
java.security.SecureRandom |
getSecureRandom()
Gets the SecureRandom instance used by this builder. |
Method Detail |
---|
int getAlgorithm()
symmetric encryption algorithms
.PGPDataEncryptor build(byte[] keyBytes) throws PGPException
keyBytes
- the bytes of the key to use for the cipher.
PGPException
- if an error occurs initialising the configured encryption.java.security.SecureRandom getSecureRandom()
SecureRandom
is
constructed and retained by the this builder.
|
Bouncy Castle Cryptography 1.51 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |