javax.crypto
Class NullCipherSpi

java.lang.Object
  extended by javax.crypto.CipherSpi
      extended by javax.crypto.NullCipherSpi

public class NullCipherSpi
extends CipherSpi

DOCUMENT ME!

Version:
"$Id: NullCipherSpi.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Patric Kabus, Jan Peters

Constructor Summary
NullCipherSpi()
          Creates a new NullCipherSpi object.
 
Method Summary
private  void checkInputParameters(byte[] input, int inputOffset, int inputLen)
          DOCUMENT ME!
private  void checkOutputParameters(byte[] output, int outputOffset)
          DOCUMENT ME!
 byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen)
          DOCUMENT ME!
 int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
          DOCUMENT ME!
 int engineGetBlockSize()
          DOCUMENT ME!
 byte[] engineGetIV()
          DOCUMENT ME!
 int engineGetOutputSize(int inputLen)
          DOCUMENT ME!
 AlgorithmParameters engineGetParameters()
          DOCUMENT ME!
 void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
          DOCUMENT ME!
protected  void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
          DOCUMENT ME!
protected  void engineInit(int opmode, Key key, SecureRandom random)
          DOCUMENT ME!
protected  void engineSetMode(String mode)
          DOCUMENT ME!
protected  void engineSetPadding(String padding)
          DOCUMENT ME!
 byte[] engineUpdate(byte[] input, int inputOffset, int inputLen)
          DOCUMENT ME!
 int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
          DOCUMENT ME!
 
Methods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineGetKeySize, engineUnwrap, engineUpdate, engineWrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullCipherSpi

public NullCipherSpi()
Creates a new NullCipherSpi object.

Method Detail

engineSetMode

protected void engineSetMode(String mode)
                      throws NoSuchAlgorithmException
DOCUMENT ME!

Specified by:
engineSetMode in class CipherSpi
Parameters:
mode -
Throws:
NoSuchAlgorithmException

engineSetPadding

protected void engineSetPadding(String padding)
                         throws NoSuchPaddingException
DOCUMENT ME!

Specified by:
engineSetPadding in class CipherSpi
Parameters:
padding -
Throws:
NoSuchPaddingException

engineGetBlockSize

public int engineGetBlockSize()
DOCUMENT ME!

Specified by:
engineGetBlockSize in class CipherSpi
Returns:

engineGetOutputSize

public int engineGetOutputSize(int inputLen)
                        throws IllegalStateException
DOCUMENT ME!

Specified by:
engineGetOutputSize in class CipherSpi
Parameters:
inputLen -
Returns:
Throws:
IllegalStateException

engineGetIV

public byte[] engineGetIV()
DOCUMENT ME!

Specified by:
engineGetIV in class CipherSpi
Returns:

engineGetParameters

public AlgorithmParameters engineGetParameters()
DOCUMENT ME!

Specified by:
engineGetParameters in class CipherSpi
Returns:

engineInit

protected void engineInit(int opmode,
                          Key key,
                          SecureRandom random)
                   throws InvalidKeyException
DOCUMENT ME!

Specified by:
engineInit in class CipherSpi
Parameters:
opmode -
key -
random -
Throws:
InvalidKeyException

engineInit

public void engineInit(int opmode,
                       Key key,
                       AlgorithmParameterSpec params,
                       SecureRandom random)
                throws InvalidKeyException,
                       InvalidAlgorithmParameterException
DOCUMENT ME!

Specified by:
engineInit in class CipherSpi
Parameters:
opmode -
key -
params -
random -
Throws:
InvalidKeyException
InvalidAlgorithmParameterException

engineInit

protected void engineInit(int opmode,
                          Key key,
                          AlgorithmParameters params,
                          SecureRandom random)
                   throws InvalidKeyException,
                          InvalidAlgorithmParameterException
DOCUMENT ME!

Specified by:
engineInit in class CipherSpi
Parameters:
opmode -
key -
params -
random -
Throws:
InvalidKeyException
InvalidAlgorithmParameterException

engineUpdate

public final byte[] engineUpdate(byte[] input,
                                 int inputOffset,
                                 int inputLen)
                          throws IllegalStateException
DOCUMENT ME!

Specified by:
engineUpdate in class CipherSpi
Parameters:
input -
inputOffset -
inputLen -
Returns:
Throws:
IllegalStateException

engineUpdate

public final int engineUpdate(byte[] input,
                              int inputOffset,
                              int inputLen,
                              byte[] output,
                              int outputOffset)
                       throws IllegalStateException,
                              ShortBufferException
DOCUMENT ME!

Specified by:
engineUpdate in class CipherSpi
Parameters:
input -
inputOffset -
inputLen -
output -
outputOffset -
Returns:
Throws:
IllegalStateException
ShortBufferException

engineDoFinal

public final byte[] engineDoFinal(byte[] input,
                                  int inputOffset,
                                  int inputLen)
                           throws IllegalStateException,
                                  IllegalBlockSizeException,
                                  BadPaddingException
DOCUMENT ME!

Specified by:
engineDoFinal in class CipherSpi
Parameters:
input -
inputOffset -
inputLen -
Returns:
Throws:
IllegalStateException
IllegalBlockSizeException
BadPaddingException

engineDoFinal

public final int engineDoFinal(byte[] input,
                               int inputOffset,
                               int inputLen,
                               byte[] output,
                               int outputOffset)
                        throws IllegalStateException,
                               ShortBufferException,
                               IllegalBlockSizeException,
                               BadPaddingException
DOCUMENT ME!

Specified by:
engineDoFinal in class CipherSpi
Parameters:
input -
inputOffset -
inputLen -
output -
outputOffset -
Returns:
Throws:
IllegalStateException
ShortBufferException
IllegalBlockSizeException
BadPaddingException

checkInputParameters

private void checkInputParameters(byte[] input,
                                  int inputOffset,
                                  int inputLen)
DOCUMENT ME!

Parameters:
input -
inputOffset -
inputLen -
Throws:
NullPointerException
IllegalArgumentException
ArrayIndexOutOfBoundsException

checkOutputParameters

private void checkOutputParameters(byte[] output,
                                   int outputOffset)
DOCUMENT ME!

Parameters:
output -
outputOffset -
Throws:
NullPointerException
IllegalArgumentException
ArrayIndexOutOfBoundsException


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.