May 2001
Intermediate to advanced
618 pages
20h 50m
English
Class javax.crypto.CipherSpi
This class is the
service
provider interface of the Cipher class. To
implement a particular cipher algorithm, create a subclass of this
class and register the class with an appropriate security provider.
Like all SPI classes, the methods that begin with engine are called
by their corresponding method (without engine) from the
Cipher class. This is a JCE engine, which means
it must be deployed in a specially signed jar file.
public abstract class javax.crypto.CipherSpi extends java.lang.Object { // Constructors public CipherSpi( ); // Protected Instance Methods protected abstract int engineDoFinal(byte[], int, int, byte[], int); protected abstract byte[] engineDoFinal(byte[], int, int); protected abstract int engineGetBlockSize( ); protected abstract byte[] engineGetIV( ); protected int engineGetKeySize(Key); protected abstract int engineGetOutputSize(int); protected abstract AlgorithmParameters engineGetParameters( ); protected abstract void engineInit(int, Key, AlgorithmParameters, SecureRandom); protected abstract void engineInit(int, Key, SecureRandom); protected abstract void engineInit(int, Key, AlgorithmParameterSpec, SecureRandom); protected abstract void engineSetMode(String); protected abstract void engineSetPadding(String); protected Key engineUnwrap(byte[], String, int); protected abstract int engineUpdate(byte[], int, int, byte[], int); protected abstract byte[] engineUpdate(byte[], int, int); protected byte[] ...Read now
Unlock full access