Package org.bouncycastle.operator
Interface OutputEncryptor
-
- All Known Subinterfaces:
OutputAEADEncryptor
public interface OutputEncryptorGeneral interface for an operator that is able to produce an OutputStream that will output encrypted data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.bouncycastle.asn1.x509.AlgorithmIdentifiergetAlgorithmIdentifier()Return the algorithm identifier describing the encryption algorithm and parameters this encryptor uses.GenericKeygetKey()Return the key used for encrypting the output.java.io.OutputStreamgetOutputStream(java.io.OutputStream encOut)Wrap the passed in output stream encOut, returning an output stream that encrypts anything passed in before sending on to encOut.
-
-
-
Method Detail
-
getAlgorithmIdentifier
org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()
Return the algorithm identifier describing the encryption algorithm and parameters this encryptor uses.- Returns:
- algorithm oid and parameters.
-
getOutputStream
java.io.OutputStream getOutputStream(java.io.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- output stream for encrypted output.- Returns:
- an encrypting OutputStream
-
getKey
GenericKey getKey()
Return the key used for encrypting the output.- Returns:
- the encryption key.
-
-