Top Description Methods
org.bouncycastle.crypto

public Interface OutputEncryptor<T extends Parameters>

extends OutputCipher<T extends Parameters>
Known Direct Subinterfaces
org.bouncycastle.crypto.OutputAEADEncryptor
Known Direct Implementers
org.bouncycastle.crypto.fips.FipsOutputEncryptor, org.bouncycastle.crypto.general.GuardedSymmetricOperatorFactory.OutEncryptor, org.bouncycastle.crypto.general.GuardedSymmetricStreamOperatorFactory.OutEncryptor
Type Parameters
<T>
the parameters type for the encryptor.
Imports
java.io.OutputStream

Base interface for an output producing Encryptor.

Method Summary

Modifier and TypeMethod and Description
public CipherOutputStream

Returns:

a stream for writing the original plain-text data.
getEncryptingStream
(OutputStream
the output stream to collect the encrypted data in.
out
)

Return a stream which will encrypt it's input writing the results to out.

Inherited from org.bouncycastle.crypto.OutputCipher:
getMaxOutputSizegetParametersgetUpdateOutputSize

Method Detail

getEncryptingStreamback to summary
public CipherOutputStream getEncryptingStream(OutputStream out)

Return a stream which will encrypt it's input writing the results to out.

Parameters
out:OutputStream

the output stream to collect the encrypted data in.

Returns:CipherOutputStream

a stream for writing the original plain-text data.