Android.Security.KeyChain.GetPrivateKey Method
Returns the PrivateKey for the requested alias, or null if no there is no result.

Syntax

[Android.Runtime.Register("getPrivateKey", "(Landroid/content/Context;Ljava/lang/String;)Ljava/security/PrivateKey;", "")]
public static Java.Security.IPrivateKey GetPrivateKey (Android.Content.Context context, string alias)

Parameters

context
Documentation for this section has not yet been entered.
alias
The alias of the desired private key, typically returned via IKeyChainAliasCallback.Alias(string).

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Android.Security.KeyChainExceptionif the alias was valid but there was some problem accessing it.
Java.Lang.InterruptedException

Remarks

Returns the PrivateKey for the requested alias, or null if no there is no result.

[Android Documentation]

Requirements

Namespace: Android.Security
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 14