Top Description Methods
org.bouncycastle.operator

public Interface OutputEncryptor

Known Direct Subinterfaces
org.bouncycastle.operator.OutputAEADEncryptor
Known Direct Implementers
org.bouncycastle.cert.crmf.bc.BcCRMFEncryptorBuilder.CRMFOutputEncryptor, org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder.CRMFOutputEncryptor, org.bouncycastle.cms.bc.BcCMSContentEncryptorBuilder.CMSOutputEncryptor, org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder.CMSOutputEncryptor
Imports
java.io.OutputStream, org.bouncycastle.asn1.x509.AlgorithmIdentifier

General interface for an operator that is able to produce an OutputStream that will output encrypted data.

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier

Returns:

algorithm oid and parameters.
getAlgorithmIdentifier
()

Return the algorithm identifier describing the encryption algorithm and parameters this encryptor uses.

public GenericKey

Returns:

the encryption key.
getKey
()

Return the key used for encrypting the output.

public OutputStream

Returns:

an encrypting OutputStream
getOutputStream
(OutputStream
output stream for encrypted output.
encOut
)

Wrap the passed in output stream encOut, returning an output stream that encrypts anything passed in before sending on to encOut.

Method Detail

getAlgorithmIdentifierback to summary
public AlgorithmIdentifier getAlgorithmIdentifier()

Return the algorithm identifier describing the encryption algorithm and parameters this encryptor uses.

Returns:AlgorithmIdentifier

algorithm oid and parameters.

getKeyback to summary
public GenericKey getKey()

Return the key used for encrypting the output.

Returns:GenericKey

the encryption key.

getOutputStreamback to summary
public OutputStream getOutputStream(OutputStream encOut)

Wrap the passed in output stream encOut, returning an output stream that encrypts anything passed in before sending on to encOut.

Parameters
encOut:OutputStream

output stream for encrypted output.

Returns:OutputStream

an encrypting OutputStream