Android
java.security
public abstract class

java.security.MessageDigestSpi

java.lang.Object
java.security.MessageDigestSpi

This class is a Service Provider Interface (therefore the Spi suffix) for digest algorithms to be supplied by providers. Examples of digest algorithms are MD5 and SHA. A digest is a secure hash function for a stream of bytes, like a fingerprint for the stream of bytes.

Known Direct Subclasses

Summary

Public Constructors

            MessageDigestSpi()

Public Methods

          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.

Protected Methods

abstract          byte[]  engineDigest()
          int  engineDigest(byte[] buf, int offset, int len)
          int  engineGetDigestLength()
abstract          void  engineReset()
abstract          void  engineUpdate(byte input)
          void  engineUpdate(ByteBuffer input)
abstract          void  engineUpdate(byte[] input, int offset, int len)
Methods inherited from class java.lang.Object

Details

Public Constructors

public MessageDigestSpi()

Public Methods

public 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.

Protected Methods

protected abstract byte[] engineDigest()

protected int engineDigest(byte[] buf, int offset, int len)

protected int engineGetDigestLength()

protected abstract void engineReset()

protected abstract void engineUpdate(byte input)

protected void engineUpdate(ByteBuffer input)

protected abstract void engineUpdate(byte[] input, int offset, int len)

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