言語

KeyChainManager.GetPrivateKey(String, KeyChainManagerKeyPairScope) メソッド

定義

指定されたエイリアスとスコープの秘密キーを返します。

[Android.Runtime.Register("getPrivateKey", "(Ljava/lang/String;I)Ljava/security/PrivateKey;", "", ApiSince=37)]
public Java.Security.IPrivateKey? GetPrivateKey(string alias, Android.Security.KeyChainManagerKeyPairScope scope);
[<Android.Runtime.Register("getPrivateKey", "(Ljava/lang/String;I)Ljava/security/PrivateKey;", "", ApiSince=37)>]
member this.GetPrivateKey : string * Android.Security.KeyChainManagerKeyPairScope -> Java.Security.IPrivateKey

パラメーター

alias
String

目的のキー ペアのエイリアス。

scope
KeyChainManagerKeyPairScope

検索するスコープ (#KEYPAIR_SCOPE_USER または #KEYPAIR_SCOPE_DEVICE)。

返品

PrivateKey。指定されたエイリアス/スコープにキーが存在しない場合、またはキーへのアクセスが許可されていない場合にnull

属性

適用対象