English | Site Directory

Android - An Open Handset Alliance Project

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()
Answers 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()

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

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)

Build m5-rc15i - 10 Jun 2008 13:54