Partager via


SignatureSpi.EngineInitSign Method

Definition

Overloads

EngineInitSign(IPrivateKey)

Initializes this signature object with the specified private key for signing operations.

EngineInitSign(IPrivateKey, SecureRandom)

Initializes this signature object with the specified private key and source of randomness for signing operations.

EngineInitSign(IPrivateKey)

Initializes this signature object with the specified private key for signing operations.

[Android.Runtime.Register("engineInitSign", "(Ljava/security/PrivateKey;)V", "GetEngineInitSign_Ljava_security_PrivateKey_Handler")]
protected abstract void EngineInitSign (Java.Security.IPrivateKey? privateKey);
[<Android.Runtime.Register("engineInitSign", "(Ljava/security/PrivateKey;)V", "GetEngineInitSign_Ljava_security_PrivateKey_Handler")>]
abstract member EngineInitSign : Java.Security.IPrivateKey -> unit

Parameters

privateKey
IPrivateKey

the private key of the identity whose signature will be generated.

Attributes

Exceptions

if privateKey is not valid.

Remarks

Initializes this signature object with the specified private key for signing operations.

Java documentation for java.security.SignatureSpi.engineInitSign(java.security.PrivateKey).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

EngineInitSign(IPrivateKey, SecureRandom)

Initializes this signature object with the specified private key and source of randomness for signing operations.

[Android.Runtime.Register("engineInitSign", "(Ljava/security/PrivateKey;Ljava/security/SecureRandom;)V", "GetEngineInitSign_Ljava_security_PrivateKey_Ljava_security_SecureRandom_Handler")]
protected virtual void EngineInitSign (Java.Security.IPrivateKey? privateKey, Java.Security.SecureRandom? random);
[<Android.Runtime.Register("engineInitSign", "(Ljava/security/PrivateKey;Ljava/security/SecureRandom;)V", "GetEngineInitSign_Ljava_security_PrivateKey_Ljava_security_SecureRandom_Handler")>]
abstract member EngineInitSign : Java.Security.IPrivateKey * Java.Security.SecureRandom -> unit
override this.EngineInitSign : Java.Security.IPrivateKey * Java.Security.SecureRandom -> unit

Parameters

privateKey
IPrivateKey

the private key of the identity whose signature will be generated.

random
SecureRandom

the source of randomness

Attributes

Exceptions

if privateKey is not valid.

Remarks

Initializes this signature object with the specified private key and source of randomness for signing operations.

This concrete method has been added to this previously-defined abstract class. (For backwards compatibility, it cannot be abstract.)

Java documentation for java.security.SignatureSpi.engineInitSign(java.security.PrivateKey, java.security.SecureRandom).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to