Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.mindbright.jce.crypto
Class Mac

    java.lang.Object
      com.mindbright.jce.crypto.Mac

All Implemented Interfaces:
  java.lang.Cloneable

public class Mac
extends java.lang.Object
implements java.lang.Cloneable

Constructor Summary
`protected` | `Mac(MacSpi macSpi, Provider provider, java.lang.String algorithm)`

Method Summary
`java.lang.Object` | `clone()`
`byte[]` | `doFinal()`
`byte[]` | `doFinal(byte[] input)`
`void` | `doFinal(byte[] output, int outOffset)`
`java.lang.String` | `getAlgorithm()`
`static Mac` | `getInstance(java.lang.String algorithm)`
`static Mac` | `getInstance(java.lang.String algorithm, java.lang.String provider)`
`int` | `getMacLength()`
`void` | `init(Key key)`
`void` | `init(Key key, AlgorithmParameterSpec params)`
`void` | `reset()`
`void` | `update(byte input)`
`void` | `update(byte[] input)`
`void` | `update(byte[] input, int offset, int len)`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Mac

    protected Mac(MacSpi macSpi,
                  Provider provider,
                  java.lang.String algorithm)

Method Detail

### clone

    public java.lang.Object clone()
                           throws java.lang.CloneNotSupportedException

  Throws:
    `java.lang.CloneNotSupportedException`

### doFinal

    public final byte[] doFinal()
                         throws java.lang.IllegalStateException

  Throws:
    `java.lang.IllegalStateException`

### doFinal

    public final byte[] doFinal(byte[] input)
                         throws java.lang.IllegalStateException

  Throws:
    `java.lang.IllegalStateException`

### doFinal

    public final void doFinal(byte[] output,
                              int outOffset)
                       throws ShortBufferException,
                              java.lang.IllegalStateException

  Throws:
    `ShortBufferException`
    `java.lang.IllegalStateException`

### getAlgorithm

    public final java.lang.String getAlgorithm()

### getInstance

    public static final Mac getInstance(java.lang.String algorithm)
                                 throws NoSuchAlgorithmException

  Throws:
    `NoSuchAlgorithmException`

### getInstance

    public static final Mac getInstance(java.lang.String algorithm,
                                        java.lang.String provider)
                                 throws NoSuchProviderException,
                                        NoSuchAlgorithmException

  Throws:
    `NoSuchProviderException`
    `NoSuchAlgorithmException`

### getMacLength

    public final int getMacLength()

### init

    public final void init(Key key)
                    throws InvalidKeyException

  Throws:
    `InvalidKeyException`

### init

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

  Throws:
    `InvalidKeyException`
    `InvalidAlgorithmParameterException`

### reset

    public final void reset()

### update

    public final void update(byte input)
                      throws java.lang.IllegalStateException

  Throws:
    `java.lang.IllegalStateException`

### update

    public final void update(byte[] input)
                      throws java.lang.IllegalStateException

  Throws:
    `java.lang.IllegalStateException`

### update

    public final void update(byte[] input,
                             int offset,
                             int len)
                      throws java.lang.IllegalStateException

  Throws:
    `java.lang.IllegalStateException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD