|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
org.dmonix.cipher.DMCipherInputStream
The base class for all ciphered input streams.
Copyright: Copyright (c) 2004
Company: dmonix.org
| Field Summary |
| Fields inherited from class java.io.FilterInputStream |
in |
| Constructor Summary | |
protected |
DMCipherInputStream(java.io.InputStream istream,
java.lang.String cipherAlgorithm)
|
| Method Summary | |
java.lang.Object |
clone()
THIS METHOD IS NOT SUPPORTED! |
void |
close()
Closes this input stream and releases any system resources associated with the stream. |
protected void |
initCipher(java.security.Key key)
Init the cipher. |
protected void |
initCipher(java.security.Key key,
java.security.spec.AlgorithmParameterSpec param)
Init the cipher. |
int |
read()
Reads the next byte of data from this input stream. |
int |
read(byte[] b)
Reads up to b.length bytes of data from this input stream into an array of bytes. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this input stream into an array of bytes. |
| Methods inherited from class java.io.FilterInputStream |
available, mark, markSupported, reset, skip |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected DMCipherInputStream(java.io.InputStream istream,
java.lang.String cipherAlgorithm)
throws java.security.NoSuchAlgorithmException,
javax.crypto.NoSuchPaddingException
| Method Detail |
public final java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - The exception is always thrown
public void close()
throws java.io.IOException
java.io.IOException
public int read()
throws java.io.IOException
java.io.IOException
public int read(byte[] b)
throws java.io.IOException
b - the buffer into which the data is read.
java.io.IOException
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
b - the buffer into which the data is read.off - the start offset of the data.len - the maximum number of bytes read.
java.io.IOException
protected void initCipher(java.security.Key key)
throws java.security.InvalidKeyException
key - The key for the cipher
java.security.InvalidKeyException
protected void initCipher(java.security.Key key,
java.security.spec.AlgorithmParameterSpec param)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
key - The key for the cipherparam - Cipher parameters
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||