protected java.io.OutputStream |
Encryptor.armor(java.io.OutputStream out,
FileMetadata meta) |
Wraps with stream that outputs ASCII-armored text - including configuring
its armor headers.
|
int |
Encryptor.bestPacketSize(FileMetadata meta) |
Calculates optimal PGP packet size, based on plaintext length.
|
protected org.bouncycastle.openpgp.operator.PublicKeyKeyEncryptionMethodGenerator |
Encryptor.buildPublicKeyEncryptor(Key key,
FileMetadata meta) |
Builds a PublicKeyKeyEncryptionMethodGenerator
for the specified key.
|
protected org.bouncycastle.openpgp.PGPSignatureGenerator |
Encryptor.buildSigner(Key key,
FileMetadata meta) |
Builds a PGPSignatureGenerator for the specified key and content.
|
protected org.bouncycastle.openpgp.operator.PBEKeyEncryptionMethodGenerator |
Encryptor.buildSymmetricKeyEncryptor(FileMetadata meta) |
Builds a PublicKeyKeyEncryptionMethodGenerator
for the specified key to encrypt the file.
|
protected java.io.OutputStream |
Encryptor.compress(java.io.OutputStream out,
FileMetadata meta) |
Wraps with stream that outputs compressed data packet.
|
protected long |
Encryptor.copy(java.io.InputStream i,
java.io.OutputStream o,
Encryptor.SigningOutputStream s,
FileMetadata meta) |
Copies the content from the specified input stream
to the specified output stream.
|
FileMetadata |
Encryptor.encrypt(java.io.InputStream plaintext,
java.io.OutputStream ciphertext,
FileMetadata meta) |
Signs, compresses, and encrypts the specified content as a PGP message
into the specified output stream with the specified content metadata.
|
protected java.io.OutputStream |
Encryptor.encrypt(java.io.OutputStream out,
FileMetadata meta) |
Wraps with stream that outputs encrypted data packet.
|
byte[] |
Encryptor.getCompressionBuffer(FileMetadata meta) |
Internal buffer for compressed-data packets, sized based on plaintext length.
|
byte[] |
Encryptor.getCopyBuffer(FileMetadata meta) |
Internal buffer for copying plaintext into the encryption pipeline,
sized based on plaintext length.
|
byte[] |
Encryptor.getEncryptionBuffer(FileMetadata meta) |
Internal buffer for encrypted-data packets, sized based on plaintext length.
|
byte[] |
Encryptor.getLiteralBuffer(FileMetadata meta) |
Internal buffer for literal-data packets, sized based on plaintext length.
|
protected java.io.OutputStream |
Encryptor.packet(java.io.OutputStream out,
FileMetadata meta) |
Wraps with stream that ouputs literal data packet.
|
void |
EncryptedAsciiArmorHeadersCallback.prepareAsciiArmoredHeaders(Encryptor encryptor,
FileMetadata meta,
EncryptedAsciiArmorHeadersManipulator manipulator) |
Invoked by the encryptor after updating the
settings with the configured global headers.
|
java.io.OutputStream |
Encryptor.prepareCiphertextOutputStream(java.io.OutputStream ciphertext,
FileMetadata meta,
boolean closeOriginal) |
Builds a new wrapper OutputStream to wrap the original specified
OutputStream , where everything written to the it is automatically
encrypted+compressed+signed according to the encryptor's configuration,
and then written to the original stream.
|
java.io.OutputStream |
Encryptor.prepareCiphertextOutputStream(FileMetadata plainMeta,
java.io.File ciphertext) |
Builds a wrapper OutputStream where everything written to the it is
encrypted+compressed+signed according to the encryptor's configuration,
and then written to the specified target file.
|
java.io.OutputStream |
Encryptor.prepareCiphertextOutputStream(FileMetadata plainMeta,
java.nio.file.Path ciphertext) |
Builds a wrapper OutputStream where everything written to the it is
encrypted+compressed+signed according to the encryptor's configuration,
and then written to the specified target file.
|
protected Encryptor.SigningOutputStream |
Encryptor.sign(java.io.OutputStream out,
FileMetadata meta) |
Wraps with stream that outputs signature packets
as header and footer to envelope.
|