This abstract
class defines the
service-provider interface for Mac. A
cryptographic provider must implement a concrete subclass of this
class for each MAC algorithm it supports. Applications never need to
use or subclass this class.
public abstract class MacSpi {
// Public Constructors
public MacSpi( );
// Public Methods Overriding Object
public Object clone( ) throws CloneNotSupportedException;
// Protected Instance Methods
protected abstract byte[ ] engineDoFinal( );
protected abstract int engineGetMacLength( );
protected abstract void engineInit(java.security.Key key, java.security.spec.
AlgorithmParameterSpec params) throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException;
protected abstract void engineReset( );
5.0 protected void engineUpdate(java.nio.ByteBuffer input);
protected abstract void engineUpdate(byte input);
protected abstract void engineUpdate(byte[ ] input, int offset, int len);
}