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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Since:
JDE 3.6.0

Field Summary
 
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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
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

Following copied from class: CryptoOutputStream
Returns:
A String that represents the name of the algorithm.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

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 3.6.0
See Also:
CryptoOutputStream.write(int)
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.



Copyright 1999-2009 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.