KeyPair(IPublicKey, IPrivateKey) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从给定的公钥和私钥构造密钥对。
[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
参数
- publicKey
- IPublicKey
公钥。
- privateKey
- IPrivateKey
私钥。
- 属性
注解
从给定的公钥和私钥构造密钥对。
请注意,此构造函数仅在生成的密钥对中存储对公钥和私钥组件的引用。 这是安全的,因为 Key 对象是不可变的。
Java文档java.security.KeyPair.KeyPair(java.security.PublicKey, java.security.PrivateKey)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。