KeyStoreException.RequiresUserAuthentication Method

Definition

Indicates whether the failure is due to the device being locked.

[Android.Runtime.Register("requiresUserAuthentication", "()Z", "GetRequiresUserAuthenticationHandler", ApiSince=33)]
public virtual bool RequiresUserAuthentication ();
[<Android.Runtime.Register("requiresUserAuthentication", "()Z", "GetRequiresUserAuthenticationHandler", ApiSince=33)>]
abstract member RequiresUserAuthentication : unit -> bool
override this.RequiresUserAuthentication : unit -> bool

Returns

true if the key operation failed because the user has to authenticate (e.g. by unlocking the device).

Attributes

Remarks

Indicates whether the failure is due to the device being locked.

Java documentation for android.security.KeyStoreException.requiresUserAuthentication().

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