Signer.SetKeyPair(KeyPair) Method

Definition

Caution

deprecated

Sets the key pair (public key and private key) for this signer.

[Android.Runtime.Register("setKeyPair", "(Ljava/security/KeyPair;)V", "")]
[System.Obsolete("deprecated")]
public void SetKeyPair (Java.Security.KeyPair? pair);
[<Android.Runtime.Register("setKeyPair", "(Ljava/security/KeyPair;)V", "")>]
[<System.Obsolete("deprecated")>]
member this.SetKeyPair : Java.Security.KeyPair -> unit

Parameters

pair
KeyPair

an initialized key pair.

Attributes

Exceptions

if the key pair is invalid.

if any other key related problem occurs.

Remarks

Sets the key pair (public key and private key) for this signer.

First, if there is a security manager, its checkSecurityAccess method is called with "setSignerKeyPair" as its argument to see if it's ok to set the key pair.

Java documentation for java.security.Signer.setKeyPair(java.security.KeyPair).

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