Language

KeyChain.IsKeyAlgorithmSupported(String) Method

Definition

Returns true if the current device's KeyChain supports a specific PrivateKey type indicated by algorithm (e.

[Android.Runtime.Register("isKeyAlgorithmSupported", "(Ljava/lang/String;)Z", "")]
public static bool IsKeyAlgorithmSupported(string algorithm);
[<Android.Runtime.Register("isKeyAlgorithmSupported", "(Ljava/lang/String;)Z", "")>]
static member IsKeyAlgorithmSupported : string -> bool

Parameters

algorithm
String

The key algorithm name to test, such as RSA or EC.

Returns

true if KeyChain supports the specified key algorithm on this device; otherwise, false.

Attributes

Remarks

Returns true if the current device's KeyChain supports a specific PrivateKey type indicated by algorithm (e.g., "RSA").

Java documentation for android.security.KeyChain.isKeyAlgorithmSupported(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