次の方法で共有


IX509KeyManager.GetPrivateKey(String) Method

Definition

Returns the key associated with the given alias.

[Android.Runtime.Register("getPrivateKey", "(Ljava/lang/String;)Ljava/security/PrivateKey;", "GetGetPrivateKey_Ljava_lang_String_Handler:Javax.Net.Ssl.IX509KeyManagerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Security.IPrivateKey? GetPrivateKey (string? alias);
[<Android.Runtime.Register("getPrivateKey", "(Ljava/lang/String;)Ljava/security/PrivateKey;", "GetGetPrivateKey_Ljava_lang_String_Handler:Javax.Net.Ssl.IX509KeyManagerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetPrivateKey : string -> Java.Security.IPrivateKey

Parameters

alias
String

the alias name

Returns

the requested key, or null if the alias can't be found.

Attributes

Remarks

Returns the key associated with the given alias.

Java documentation for javax.net.ssl.X509KeyManager.getPrivateKey(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to