public interface PGPDataEncryptor
PGPDataEncryptor
instances are generally not constructed directly, but obtained from a
PGPDataEncryptorBuilder
.
Modifier and Type | Method and Description |
---|---|
int |
getBlockSize()
Gets the block size of the underlying cipher used by this encryptor.
|
PGPDigestCalculator |
getIntegrityCalculator()
Obtains the integrity check calculator configured for this encryptor instance.
|
java.io.OutputStream |
getOutputStream(java.io.OutputStream out)
Constructs an encrypting output stream that encrypts data using the underlying cipher of this
encryptor.
|
java.io.OutputStream getOutputStream(java.io.OutputStream out)
The cipher instance in this encryptor is used for all output streams obtained from this method, so it should only be invoked once.
out
- the stream to wrap and write encrypted data to.PGPDigestCalculator getIntegrityCalculator()
null
if no integrity checking was
configured.int getBlockSize()