語言

KeyPair(IPublicKey, IPrivateKey) 建構函式

定義

從給定的公鑰與私鑰構造一對金鑰。

[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)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於