다음을 통해 공유


KeyPair(IPublicKey, IPrivateKey) Constructor

Definition

Constructs a key pair from the given public key and private key.

[Android.Runtime.Register(".ctor", "(Ljava/security/PublicKey;Ljava/security/PrivateKey;)V", "")]
public KeyPair (Java.Security.IPublicKey? publicKey, Java.Security.IPrivateKey? privateKey);
[<Android.Runtime.Register(".ctor", "(Ljava/security/PublicKey;Ljava/security/PrivateKey;)V", "")>]
new Java.Security.KeyPair : Java.Security.IPublicKey * Java.Security.IPrivateKey -> Java.Security.KeyPair

Parameters

publicKey
IPublicKey

the public key.

privateKey
IPrivateKey

the private key.

Attributes

Remarks

Constructs a key pair from the given public key and private key.

Note that this constructor only stores references to the public and private key components in the generated key pair. This is safe, because Key objects are immutable.

Java documentation for java.security.KeyPair.KeyPair(java.security.PublicKey, 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