Partager via


Signature.InitSign Method

Definition

Overloads

InitSign(IPrivateKey)

Initialize this object for signing.

InitSign(IPrivateKey, SecureRandom)

Initialize this object for signing.

InitSign(IPrivateKey)

Initialize this object for signing.

[Android.Runtime.Register("initSign", "(Ljava/security/PrivateKey;)V", "")]
public void InitSign (Java.Security.IPrivateKey? privateKey);
[<Android.Runtime.Register("initSign", "(Ljava/security/PrivateKey;)V", "")>]
member this.InitSign : Java.Security.IPrivateKey -> unit

Parameters

privateKey
IPrivateKey

the private key of the identity whose signature is going to be generated.

Attributes

Exceptions

if privateKey is not valid.

Remarks

Initialize this object for signing. If this method is called again with a different argument, it negates the effect of this call.

Java documentation for java.security.Signature.initSign(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

InitSign(IPrivateKey, SecureRandom)

Initialize this object for signing.

[Android.Runtime.Register("initSign", "(Ljava/security/PrivateKey;Ljava/security/SecureRandom;)V", "")]
public void InitSign (Java.Security.IPrivateKey? privateKey, Java.Security.SecureRandom? random);
[<Android.Runtime.Register("initSign", "(Ljava/security/PrivateKey;Ljava/security/SecureRandom;)V", "")>]
member this.InitSign : Java.Security.IPrivateKey * Java.Security.SecureRandom -> unit

Parameters

privateKey
IPrivateKey

the private key of the identity whose signature is going to be generated.

random
SecureRandom

the source of randomness for this signature.

Attributes

Exceptions

if privateKey is not valid.

Remarks

Initialize this object for signing. If this method is called again with a different argument, it negates the effect of this call.

Java documentation for java.security.Signature.initSign(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