net.rim.device.api.crypto
Class NullEncryptor

java.lang.Object
  extended by java.io.OutputStream
      extended by net.rim.device.api.crypto.CryptoOutputStream
          extended by net.rim.device.api.crypto.EncryptorOutputStream
              extended by 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:
BlackBerry API 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.
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:
BlackBerry API 3.6.0


Method Detail

getAlgorithm

public String getAlgorithm()
Returns the name of the signing algorithm used, ie "Null".

Specified by:
getAlgorithm in 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.
Since:
BlackBerry API 3.6.0

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.

Specified by:
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.
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.
Since:
BlackBerry API 3.6.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal