Language

AccessControlProfile.Builder.SetUserAuthenticationTimeout(Int64) Method

Definition

Sets the authentication timeout to use.

[Android.Runtime.Register("setUserAuthenticationTimeout", "(J)Landroid/security/identity/AccessControlProfile$Builder;", "", ApiSince=30)]
public Android.Security.Identity.AccessControlProfile.Builder SetUserAuthenticationTimeout(long userAuthenticationTimeoutMillis);
[<Android.Runtime.Register("setUserAuthenticationTimeout", "(J)Landroid/security/identity/AccessControlProfile$Builder;", "", ApiSince=30)>]
member this.SetUserAuthenticationTimeout : int64 -> Android.Security.Identity.AccessControlProfile.Builder

Parameters

userAuthenticationTimeoutMillis
Int64

the authentication timeout, in milliseconds.

Returns

The builder. This value cannot be null.

Attributes

Remarks

This method is deprecated. Use java.security.KeyStore with the Android hardware-backed keystore instead.

Sets the authentication timeout to use.

The authentication timeout specifies the amount of time, in milliseconds, for which a user authentication is valid, if user authentication is required (see setUserAuthenticationRequired(boolean)).

If the timeout is zero, then authentication is always required for each reader session.

Android reference for android.security.identity.AccessControlProfile.Builder.setUserAuthenticationTimeout.

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