Java.Security.Signature.InitSign Method
Initializes this Signature instance for signing, using the private key of the identity whose signature is going to be generated and the specified source of randomness.

Syntax

[Android.Runtime.Register("initSign", "(Ljava/security/PrivateKey;Ljava/security/SecureRandom;)V", "")]
public void InitSign (IPrivateKey privateKey, SecureRandom random)

Parameters

privateKey
the private key.
random
the SecureRandom to use.

Exceptions

TypeReason
Java.Security.InvalidKeyExceptionif privateKey is not valid.

Remarks

Initializes this Signature instance for signing, using the private key of the identity whose signature is going to be generated and the specified source of randomness.

[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