|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
net.rim.device.api.crypto.CryptoOutputStream
net.rim.device.api.crypto.EncryptorOutputStream
net.rim.device.api.crypto.NullEncryptor
public final class NullEncryptor
The NULLEncryptor class does not encrypt or modify the data.
The NullEncryptor class provides no security.
| Field Summary |
|---|
| Fields inherited from class net.rim.device.api.crypto.CryptoOutputStream |
|---|
_out |
| Constructor Summary | ||
|---|---|---|
|
NullEncryptor(OutputStream output)
Creates a NullEncryptor object based on a given output stream
that all data will be written to. |
|
| Method Summary | ||
|---|---|---|
|
String |
getAlgorithm()
Returns the name of the signing algorithm used, ie "Null". |
|
void |
write(byte[] data,
int offset,
int length)
Writes the data to the underlying output stream without performing any additional processing. |
| Methods inherited from class net.rim.device.api.crypto.EncryptorOutputStream |
|---|
flush |
| Methods inherited from class net.rim.device.api.crypto.CryptoOutputStream |
|---|
close, flush, getOutputStream, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullEncryptor(OutputStream output)
NullEncryptor object based on a given output stream
that all data will be written to.
output - The output stream to use.| Method Detail |
|---|
public String getAlgorithm()
getAlgorithm in class CryptoOutputStream
public void write(byte[] data,
int offset,
int length)
throws IOException
write in class CryptoOutputStreamdata - A byte array to contain the data.offset - The offset, or initial position, of the data within the
array.length - An integer that represents the amount of data to
encrypt. The data is not encrypted, since this is a Null encryptor.
IOException - Thrown if an I/O error occurs.CryptoOutputStream.write(int)
|
|||||||||
| 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.