Signature.InitSign Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.