Name
MacSpi
Synopsis
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); }
Passed To
Mac.Mac( )
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.