Signer.SetKeyPair(KeyPair) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
deprecated
為此簽署者設定金鑰對(公鑰與私鑰)。
[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
參數
- pair
- KeyPair
初始化的金鑰對。
- 屬性
例外狀況
如果金鑰對無效。
如果發生其他與關鍵相關問題。
備註
為此簽署者設定金鑰對(公鑰與私鑰)。
首先,如果有安全管理器,會呼叫其 checkSecurityAccess 方法,並以 "setSignerKeyPair" 參數作為參數,以確認是否可以設定金鑰對。
Java 文件 java.security.Signer.setKeyPair(java.security.KeyPair)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。