public interface

InputDecryptor

org.bouncycastle.operator.InputDecryptor

Class Overview

General interface for an operator that is able to produce an InputStream that will decrypt a stream of encrypted data.

Summary

Public Methods
abstract AlgorithmIdentifier getAlgorithmIdentifier()
Return the algorithm identifier describing the encryption algorithm and parameters this decryptor can process.
abstract InputStream getInputStream(InputStream encIn)
Wrap the passed in input stream encIn, returning an input stream that decrypts what it reads from encIn before returning it.

Public Methods

public abstract AlgorithmIdentifier getAlgorithmIdentifier ()

Return the algorithm identifier describing the encryption algorithm and parameters this decryptor can process.

Returns
  • algorithm oid and parameters.

public abstract InputStream getInputStream (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