SHOW Signed

net.rim.device.api.crypto
Class NullEncryptor

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--net.rim.device.api.crypto.CryptoOutputStream
              |
              +--net.rim.device.api.crypto.EncryptorOutputStream
                    |
                    +--net.rim.device.api.crypto.NullEncryptor

public final class NullEncryptor
extends EncryptorOutputStream

The NULLEncryptor class does not encrypt or modify the data.

The NullEncryptor class provides no security.

Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

Since:
JDE 3.6.0

Fields inherited from class net.rim.device.api.crypto.CryptoOutputStream
_out
 
Constructor Summary
 Category: Signed NullEncryptor(OutputStream output)
          Creates a NullEncryptor object based on a given output stream that all data will be written to.
 
Method Summary
 Category: Signed  String getAlgorithm()
          Returns the name of the signing algorithm used, ie "Null".
 Category: Signed  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

NullEncryptor

public NullEncryptor(OutputStream output)
Creates a NullEncryptor object based on a given output stream that all data will be written to.

Parameters:
output - The output stream to use.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Method Detail

getAlgorithm

public String getAlgorithm()
Returns the name of the signing algorithm used, ie "Null".
Overrides:
getAlgorithm in class CryptoOutputStream
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

write

public void write(byte[] data,
                  int offset,
                  int length)
           throws IOException
Writes the data to the underlying output stream without performing any additional processing.

Overrides:
write in class CryptoOutputStream
Parameters:
data - 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.
Throws:
IOException - Thrown if an I/O error occurs.
Since:
JDE 4.0.2
See Also:
CryptoOutputStream.write(int)
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.


Copyright 1999-2004 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.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.