加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090327205821/http://developer.android.com:80/reference/java/security/MessageDigestSpi.html
public abstract class

MessageDigestSpi

extends Object
java.lang.Object
   ↳ java.security.MessageDigestSpi
Known Direct Subclasses

Class Overview

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.

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)
[Expand]
Inherited Methods
From class java.lang.Object

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)