KeyChain.GetPrivateKey(Context, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the PrivateKey for the requested alias, or null if the alias does not exist
or the caller has no permission to access it (see note on exceptions below).
[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);
[<Android.Runtime.Register("getPrivateKey", "(Landroid/content/Context;Ljava/lang/String;)Ljava/security/PrivateKey;", "")>]
static member GetPrivateKey : Android.Content.Context * string -> Java.Security.IPrivateKey
Parameters
- context
- Context
- alias
- String
The alias of the desired private key, typically returned via
KeyChainAliasCallback#alias.
Returns
- Attributes
Exceptions
if the alias was valid but there was some problem accessing it.
if called from the main thread.
Remarks
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.