語言

KeyStoreManager.GetGrantedKeyPairFromId(Int64) 方法

定義

回傳 KeyPair 包含先前與應用程式 id共享的公私密金鑰。

[Android.Runtime.Register("getGrantedKeyPairFromId", "(J)Ljava/security/KeyPair;", "", ApiSince=36)]
public Java.Security.KeyPair GetGrantedKeyPairFromId(long id);
[<Android.Runtime.Register("getGrantedKeyPairFromId", "(J)Ljava/security/KeyPair;", "", ApiSince=36)>]
member this.GetGrantedKeyPairFromId : int64 -> Java.Security.KeyPair

參數

id
Int64

應用程式共享的私鑰 ID

傳回

一組包含與應用程式共享的公鑰與私鑰的鑰匙對

屬性

備註

回傳 KeyPair 包含先前與應用程式 id共享的公私密金鑰。

若 a java.security.PrivateKey 未被指定 idUnrecoverableKeyException ,則 a 被拋出。

Java 文件 android.security.keystore.KeyStoreManager.getGrantedKeyPairFromId(long)。

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

適用於