be.SIRAPRISE.util
Class MyCipherInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
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 |
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 donemodulus
- The modulus using which the decryption is to be done
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