This class is an input stream that uses a Cipher object to encrypt or decrypt the bytes it reads from another stream. You must initialize the Cipher object before passing it to the CipherInputStream( ) constructor. Figure 17-2. javax.crypto.CipherInputStreampublic class CipherInputStream extends java.io.FilterInputStream { // Public Constructors public CipherInputStream (java.io.InputStream is , Cipher c ); // Protected Constructors protected CipherInputStream (java.io.InputStream is ); // Public Methods Overriding FilterInputStream public int available ( ) throws java.io.IOException; public void close ( ) throws java.io.IOException; public boolean markSupported ( ); constant public int read ( ) throws java.io.IOException; public int read (byte[ ] b ) throws java.io.IOException; public int read (byte[ ] b , int off , int len ) throws java.io.IOException; public long skip (long n ) throws java.io.IOException; } |