Package org.bouncycastle.operator
Interface InputDecryptor
- All Known Subinterfaces:
InputAEADDecryptor
public interface InputDecryptor
General interface for an operator that is able to produce
an InputStream that will decrypt a stream of encrypted data.
-
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.x509.AlgorithmIdentifier
Return the algorithm identifier describing the encryption algorithm and parameters this decryptor can process.getInputStream
(InputStream encIn) Wrap the passed in input stream encIn, returning an input stream that decrypts what it reads from encIn before returning it.
-
Method Details
-
getAlgorithmIdentifier
org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()Return the algorithm identifier describing the encryption algorithm and parameters this decryptor can process.- Returns:
- algorithm oid and parameters.
-
getInputStream
Wrap the passed in input stream encIn, returning an input stream that decrypts what it reads from encIn before returning it.- Parameters:
encIn
- InputStream containing encrypted input.- Returns:
- an decrypting InputStream
-