Android Guides | Samples

Java.Security.MessageDigestSpi Class

MessageDigestSpi is the Service Provider Interface (SPI) definition for MessageDigest.

See Also: MessageDigestSpi

Syntax

[Android.Runtime.Register("java/security/MessageDigestSpi", DoNotGenerateAcw=true)]
public abstract class MessageDigestSpi : Object

Remarks

MessageDigestSpi is the Service Provider Interface (SPI) definition for MessageDigest. Examples of digest algorithms are MD5 and SHA. A digest is a secure one way hash function for a stream of bytes. It acts like a fingerprint for a stream of bytes.

See Also

[Android Documentation]

Requirements

Namespace: Java.Security
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Java.Security.MessageDigestSpi are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Clone() : Object
Creates and returns a copy of this Object.

Protected Methods

abstract
EngineDigest() : Byte[]
Computes and returns the final hash value for this MessageDigestSpi.
EngineDigest(Byte[], Int32, Int32) : Int32
Computes and stores the final hash value for this MessageDigestSpi.
EngineGetDigestLength() : Int32
Returns the engine digest length in bytes.
abstract
EngineReset()
Puts this MessageDigestSpi back in an initial state, such that it is ready to compute a one way hash value.
EngineUpdate(ByteBuffer)
Updates this MessageDigestSpi using the given input.
abstract
EngineUpdate(SByte)
Updates this MessageDigestSpi using the given byte.
abstract
EngineUpdate(Byte[], Int32, Int32)
Updates this MessageDigestSpi using the given byte[].