com.fitbur.bouncycastle.operator.InputDecryptor Maven / Gradle / Ivy
package com.fitbur.bouncycastle.operator;
import java.io.InputStream;
import com.fitbur.bouncycastle.asn1.x509.AlgorithmIdentifier;
/**
* General interface for an operator that is able to produce
* an InputStream that will com.fitburcrypt a stream of encrypted data.
*/
public interface InputDecryptor
{
/**
* Return the algorithm identifier com.fitburscribing the encryption
* algorithm and parameters this com.fitburcryptor can process.
*
* @return algorithm oid and parameters.
*/
AlgorithmIdentifier getAlgorithmIdentifier();
/**
* Wrap the passed in input stream encIn, returning an input stream
* that com.fitburcrypts what it reads from encIn before returning it.
*
* @param encIn InputStream containing encrypted input.
* @return an com.fitburcrypting InputStream
*/
InputStream getInputStream(InputStream encIn);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy