net.rim.device.api.crypto
Class NullDecryptor

java.lang.Object
  extended by java.io.InputStream
      extended by net.rim.device.api.crypto.CryptoInputStream
          extended by net.rim.device.api.crypto.DecryptorInputStream
              extended by net.rim.device.api.crypto.NullDecryptor

public final class NullDecryptor
extends DecryptorInputStream

The NullDecryptor class provides no security.

See Also:
NullEncryptor, NullDigest
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.CryptoInputStream
_inputStream
 
Constructor Summary
Category: Signed NullDecryptor(InputStream input)
          Creates a NullDecryptor object that takes an underlying input stream.
 
Method Summary
Category: Signed  String getAlgorithm()
          Returns the name of the signing algorithm used, ie "Null".
Category: Signed  int read(byte[] data, int offset, int length)
          Reads from the underlying input stream without performing any additional processing.
 
Methods inherited from class net.rim.device.api.crypto.CryptoInputStream
available, close, 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

NullDecryptor

public NullDecryptor(InputStream input)
Creates a NullDecryptor object that takes an underlying input stream.

Parameters:
input - The input 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 CryptoInputStream
Returns:
A String representing 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

read

public int read(byte[] data,
                int offset,
                int length)
         throws IOException
Reads from the underlying input stream without performing any additional processing.

Specified by:
read in class CryptoInputStream
Parameters:
data - A byte array containing the data to be decrypted.
offset - The offset, or initial position, of the data within the array.
length - The amount of data to be read in.
Returns:
An integer containing the data that was read.
Throws:
IOException - Thrown if an I/O error occurs.
See Also:
CryptoInputStream.read()
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