Class EncryptionInputStream

java.lang.Object
java.io.InputStream
org.refcodes.security.EncryptionInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class EncryptionInputStream
extends InputStream
A EncryptionInputStream wraps an InputStream and consumes input bytes by applying a Decrypter on each byte read from the provided InputStream before passing back the processed byte to the caller. The input of the EncryptionInputStream can be converted back by the according DecryptionOutputStream.