Android Guides | Samples

Java.Security.SignatureSpi Class

SignatureSpi is the Service Provider Interface (SPI) definition for Signature.

See Also: SignatureSpi

Syntax

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

Remarks

SignatureSpi is the Service Provider Interface (SPI) definition for Signature.

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

AppRandomSecureRandom. Implementation specific source of randomness.
[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
EngineGetParameter(String) : Object
Returns the value of the parameter with the specified name.
EngineGetParameters() : AlgorithmParameters
Returns the AlgorithmParameters of this SignatureSpi instance.
abstract
EngineInitSign(IPrivateKey)
Initializes this SignatureSpi instance for signing, using the private key of the identity whose signature is going to be generated.
EngineInitSign(IPrivateKey, SecureRandom)
Initializes this SignatureSpi instance for signing, using the private key of the identity whose signature is going to be generated and the specified source of randomness.
abstract
EngineInitVerify(IPublicKey)
Initializes this SignatureSpi instance for signature verification, using the public key of the identity whose signature is going to be verified.
EngineSetParameter(IAlgorithmParameterSpec)
Sets the specified AlgorithmParameterSpec.
abstract
EngineSetParameter(String, Object)
Sets the specified parameter to the given value.
abstract
EngineSign() : Byte[]
Generates and returns the signature of all updated data.
EngineSign(Byte[], Int32, Int32) : Int32
Generates and stores the signature of all updated data in the provided byte[] at the specified position with the specified length.
EngineUpdate(ByteBuffer)
Updates the data to be verified or to be signed, using the specified ByteBuffer.
abstract
EngineUpdate(SByte)
Updates the data to be verified or to be signed, using the specified byte.
abstract
EngineUpdate(Byte[], Int32, Int32)
Updates the data to be verified or to be signed, using the given byte[], starting form the specified index for the specified length.
abstract
EngineVerify(Byte[]) : Boolean
Indicates whether the given sigBytes can be verified using the public key or a certificate of the signer.
EngineVerify(Byte[], Int32, Int32) : Boolean
Indicates whether the given sigBytes starting at index offset with length bytes can be verified using the public key or a certificate of the signer.