InputDecryptor (Bouncy Castle Library 1.52 API Specification)
Date: 2015-03-01

org.bouncycastle.operator

## Interface InputDecryptor

-     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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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.

- - ### Method Detail

    - #### 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

          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