SHOW Signed
 

net.rim.device.api.crypto
Class NullDecryptor

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--net.rim.device.api.crypto.CryptoInputStream
              |
              +--net.rim.device.api.crypto.DecryptorInputStream
                    |
                    +--net.rim.device.api.crypto.NullDecryptor

public final class NullDecryptor
extends DecryptorInputStream

The NullDecryptor 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
See Also:
NullEncryptor, NullDigest

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.
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 CryptoInputStream
Since:
JDE 3.6.0

Following copied from 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.

read

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

Overrides:
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.
Since:
JDE 3.6.0
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.



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.