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 |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getAlgorithmIdentifier()
Return the algorithm identifier describing the encryption
algorithm and parameters this decryptor can process. |
java.io.InputStream |
getInputStream(java.io.InputStream encIn)
Wrap the passed in input stream encIn, returning an input stream
that decrypts what it reads from encIn before returning it. |
getAlgorithmIdentifier
public 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
public java.io.InputStream getInputStream(java.io.InputStream encIn)
- 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