Android
javax.crypto
public class

javax.crypto.Mac

java.lang.Object
javax.crypto.Mac Cloneable

Summary

Protected Constructors

            Mac(MacSpi macSpi, Provider provider, String algorithm)

Public Methods

    final      Object  clone()
Returns a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.
    final      void  doFinal(byte[] output, int outOffset)
    final      byte[]  doFinal()
    final      byte[]  doFinal(byte[] input)
    final      String  getAlgorithm()
    final  static    Mac  getInstance(String algorithm, String provider)
    final  static    Mac  getInstance(String algorithm)
    final  static    Mac  getInstance(String algorithm, Provider provider)
    final      int  getMacLength()
    final      Provider  getProvider()
    final      void  init(Key key, AlgorithmParameterSpec params)
    final      void  init(Key key)
    final      void  reset()
    final      void  update(byte[] input)
    final      void  update(byte input)
    final      void  update(byte[] input, int offset, int len)
    final      void  update(ByteBuffer input)
Methods inherited from class java.lang.Object

Details

Protected Constructors

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

Public Methods

public final Object clone()

Returns a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.

Classes which wish to support cloning must specify that they implement the Cloneable interface, since the implementation checks for this.

Returns

  • Object a shallow copy of this object.

public final void doFinal(byte[] output, int outOffset)

public final byte[] doFinal()

public final byte[] doFinal(byte[] input)

public final String getAlgorithm()

public static final Mac getInstance(String algorithm, String provider)

public static final Mac getInstance(String algorithm)

public static final Mac getInstance(String algorithm, Provider provider)

public final int getMacLength()

public final Provider getProvider()

public final void init(Key key)

public final void reset()

public final void update(byte[] input)

public final void update(byte input)

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

public final void update(ByteBuffer input)

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48