KeyPair(IPublicKey, IPrivateKey) Constructor
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.
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.
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.