KeyStoreSpi.EngineGetKey(String, Char[]) 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 key associated with the given alias, using the given password to recover it.
[Android.Runtime.Register("engineGetKey", "(Ljava/lang/String;[C)Ljava/security/Key;", "GetEngineGetKey_Ljava_lang_String_arrayCHandler")]
public abstract Java.Security.IKey? EngineGetKey (string? alias, char[]? password);
[<Android.Runtime.Register("engineGetKey", "(Ljava/lang/String;[C)Ljava/security/Key;", "GetEngineGetKey_Ljava_lang_String_arrayCHandler")>]
abstract member EngineGetKey : string * char[] -> Java.Security.IKey
Parameters
- alias
- String
the alias name
- password
- Char[]
the password for recovering the key
Returns
the requested key, or null if the given alias does not exist or does not identify a key-related entry.
- Attributes
Exceptions
if the algorithm for recovering the key is not available.
if the key can not be recovered.
Remarks
Returns the key associated with the given alias, using the given password to recover it. The key must have been associated with the alias by a call to setKeyEntry
, or by a call to setEntry
with a PrivateKeyEntry
or SecretKeyEntry
.
Java documentation for java.security.KeyStoreSpi.engineGetKey(java.lang.String, char[])
.
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.