be.SIRAPRISE.util
Class MyCipherInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by be.SIRAPRISE.util.MyCipherInputStream
All Implemented Interfaces:
java.io.Closeable

public class MyCipherInputStream
extends java.io.FilterInputStream

Author:
Erwin

Constructor Summary
MyCipherInputStream(java.io.InputStream inputStream, java.math.BigInteger decryptExponent, java.math.BigInteger modulus)
          Creates the InputStream
 
Method Summary
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyCipherInputStream

public MyCipherInputStream(java.io.InputStream inputStream,
                           java.math.BigInteger decryptExponent,
                           java.math.BigInteger modulus)
Creates the InputStream

Parameters:
inputStream -
decryptExponent - The exponent using which the decryption is to be done
modulus - The modulus using which the decryption is to be done
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException