|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
net.rim.device.api.crypto.CryptoInputStream
net.rim.device.api.crypto.DecryptorInputStream
net.rim.device.api.crypto.StreamDecryptor
public abstract class StreamDecryptor
StreamDecryptor is an abstract class which contains functionality
common to all stream decryptors. A stream decryptor is an decryption
scheme which decrypts data one byte at a time, instead of in blocks.
| Field Summary |
|---|
| Fields inherited from class net.rim.device.api.crypto.CryptoInputStream |
|---|
_inputStream |
| Constructor Summary | ||
|---|---|---|
|
StreamDecryptor(InputStream input)
Creates a StreamDecryptor object based on an input stream that contains
the encrypted data. |
|
| Method Summary | ||
|---|---|---|
|
protected abstract void |
decrypt(byte[] data,
int offset,
int length)
Decrypts data according to the specific implementation of the chosen stream cipher. |
|
int |
read(byte[] data,
int offset,
int length)
Reads up to the specified number of bytes from this input stream into an array of bytes. |
| Methods inherited from class net.rim.device.api.crypto.CryptoInputStream |
|---|
available, close, getAlgorithm, getInputStream, markSupported, read, read |
| Methods inherited from class java.io.InputStream |
|---|
mark, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamDecryptor(InputStream input)
StreamDecryptor object based on an input stream that contains
the encrypted data.
input - The input stream used for reading the encrypted data from.| Method Detail |
|---|
public int read(byte[] data,
int offset,
int length)
throws IOException
CryptoInputStream
read in class CryptoInputStreamdata - The buffer into which the data is read.offset - The starting offset within the buffer, to store the data.length - The maximum number of bytes to read.
IOException - Thrown if an I/O error occurs.InputStream.read()
protected abstract void decrypt(byte[] data,
int offset,
int length)
throws CryptoTokenException
data - A byte array containing the input to the stream cipher.offset - The offset, or initial position within the array, of the information to decrypt.length - The length, in bytes, of the information to decrypt.
CryptoTokenException - Thrown when an error occurs with the crypto
token or the crypto token is invalid.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.