Build 1.0_r1(from source)

javax.crypto
Class CipherSpi

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

public abstract class CipherSpi
extends Object


Constructor Summary
CipherSpi()
           
 
Method Summary
protected abstract  byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen)
           
protected abstract  int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
           
protected  int engineDoFinal(ByteBuffer input, ByteBuffer output)
           
protected abstract  int engineGetBlockSize()
           
protected abstract  byte[] engineGetIV()
           
protected  int engineGetKeySize(Key key)
           
protected abstract  int engineGetOutputSize(int inputLen)
           
protected abstract  AlgorithmParameters engineGetParameters()
           
protected abstract  void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
           
protected abstract  void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
           
protected abstract  void engineInit(int opmode, Key key, SecureRandom random)
           
protected abstract  void engineSetMode(String mode)
           
protected abstract  void engineSetPadding(String padding)
           
protected  Key engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)
           
protected abstract  byte[] engineUpdate(byte[] input, int inputOffset, int inputLen)
           
protected abstract  int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
           
protected  int engineUpdate(ByteBuffer input, ByteBuffer output)
           
protected  byte[] engineWrap(Key key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CipherSpi

public CipherSpi()
Method Detail

engineSetMode

protected abstract void engineSetMode(String mode)
                               throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

engineSetPadding

protected abstract void engineSetPadding(String padding)
                                  throws NoSuchPaddingException
Throws:
NoSuchPaddingException

engineGetBlockSize

protected abstract int engineGetBlockSize()

engineGetOutputSize

protected abstract int engineGetOutputSize(int inputLen)

engineGetIV

protected abstract byte[] engineGetIV()

engineGetParameters

protected abstract AlgorithmParameters engineGetParameters()

engineInit

protected abstract void engineInit(int opmode,
                                   Key key,
                                   SecureRandom random)
                            throws InvalidKeyException
Throws:
InvalidKeyException

engineInit

protected abstract void engineInit(int opmode,
                                   Key key,
                                   AlgorithmParameterSpec params,
                                   SecureRandom random)
                            throws InvalidKeyException,
                                   InvalidAlgorithmParameterException
Throws:
InvalidKeyException
InvalidAlgorithmParameterException

engineInit

protected abstract void engineInit(int opmode,
                                   Key key,
                                   AlgorithmParameters params,
                                   SecureRandom random)
                            throws InvalidKeyException,
                                   InvalidAlgorithmParameterException
Throws:
InvalidKeyException
InvalidAlgorithmParameterException

engineUpdate

protected abstract byte[] engineUpdate(byte[] input,
                                       int inputOffset,
                                       int inputLen)

engineUpdate

protected abstract int engineUpdate(byte[] input,
                                    int inputOffset,
                                    int inputLen,
                                    byte[] output,
                                    int outputOffset)
                             throws ShortBufferException
Throws:
ShortBufferException

engineUpdate

protected int engineUpdate(ByteBuffer input,
                           ByteBuffer output)
                    throws ShortBufferException
Throws:
ShortBufferException

engineDoFinal

protected abstract byte[] engineDoFinal(byte[] input,
                                        int inputOffset,
                                        int inputLen)
                                 throws IllegalBlockSizeException,
                                        BadPaddingException
Throws:
IllegalBlockSizeException
BadPaddingException

engineDoFinal

protected abstract int engineDoFinal(byte[] input,
                                     int inputOffset,
                                     int inputLen,
                                     byte[] output,
                                     int outputOffset)
                              throws ShortBufferException,
                                     IllegalBlockSizeException,
                                     BadPaddingException
Throws:
ShortBufferException
IllegalBlockSizeException
BadPaddingException

engineDoFinal

protected int engineDoFinal(ByteBuffer input,
                            ByteBuffer output)
                     throws ShortBufferException,
                            IllegalBlockSizeException,
                            BadPaddingException
Throws:
ShortBufferException
IllegalBlockSizeException
BadPaddingException

engineWrap

protected byte[] engineWrap(Key key)
                     throws IllegalBlockSizeException,
                            InvalidKeyException
Throws:
IllegalBlockSizeException
InvalidKeyException

engineUnwrap

protected Key engineUnwrap(byte[] wrappedKey,
                           String wrappedKeyAlgorithm,
                           int wrappedKeyType)
                    throws InvalidKeyException,
                           NoSuchAlgorithmException
Throws:
InvalidKeyException
NoSuchAlgorithmException

engineGetKeySize

protected int engineGetKeySize(Key key)
                        throws InvalidKeyException
Throws:
InvalidKeyException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature