javax > javax.crypto > javax.crypto.mac >

Class: javax.crypto.Mac
    java.lang.Object
       javax.crypto.Mac


public class Mac extends Object implements Cloneable


FIELDS:

CONSTRUCTORS:
protected Mac(MacSpi macSpi, Provider provider, String algorithm)


METHODS:
public final Object clone()
Throws: CloneNotSupportedException
Overrides: Object

public final byte[] doFinal()
Throws: IllegalStateException

public final byte[] doFinal(byte[] input)
Throws: IllegalStateException

public final void doFinal(byte[] output, int outOffset)
Throws: ShortBufferException
Throws: IllegalStateException

public final String getAlgorithm()

public static final Mac getInstance(String algorithm)
Throws: NoSuchAlgorithmException

public static final Mac getInstance(String algorithm, String provider)
Throws: NoSuchAlgorithmException
Throws: NoSuchProviderException
Throws: IllegalArgumentException

public static final Mac getInstance(String algorithm, Provider provider)
Throws: NoSuchAlgorithmException
Throws: IllegalArgumentException

public final int getMacLength()

public final Provider getProvider()

public final void init(Key key)
Throws: InvalidKeyException

public final void init(Key key, AlgorithmParameterSpec params)
Throws: InvalidKeyException
Throws: InvalidAlgorithmParameterException

public final void reset()

public final void update(byte input)
Throws: IllegalStateException

public final void update(byte[] input)
Throws: IllegalStateException

public final void update(byte[] input, int offset, int len)
Throws: IllegalStateException

public final void update(ByteBuffer input)
Throws: IllegalStateException


INHERITED METHODS:
getClass(), hashCode(), equals(java.lang.Object), clone(), toString(), notify(), notifyAll(), wait(long), wait(long, int), wait(), finalize(),

SUBCLASSES:





Yazilar kaynak gosterilmeden kopyalanamaz © www.kodcu.net