다음을 통해 공유


DevicePolicyManager.GetRequiredStrongAuthTimeout(ComponentName) Method

Definition

Determine for how long the user will be able to use secondary, non strong auth for authentication, since last strong method authentication (password, pin or pattern) was used.

[Android.Runtime.Register("getRequiredStrongAuthTimeout", "(Landroid/content/ComponentName;)J", "GetGetRequiredStrongAuthTimeout_Landroid_content_ComponentName_Handler", ApiSince=26)]
public virtual long GetRequiredStrongAuthTimeout (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getRequiredStrongAuthTimeout", "(Landroid/content/ComponentName;)J", "GetGetRequiredStrongAuthTimeout_Landroid_content_ComponentName_Handler", ApiSince=26)>]
abstract member GetRequiredStrongAuthTimeout : Android.Content.ComponentName -> int64
override this.GetRequiredStrongAuthTimeout : Android.Content.ComponentName -> int64

Parameters

admin
ComponentName

The name of the admin component to check, or null to aggregate across all participating admins.

Returns

The timeout in milliseconds or 0 if not configured for the provided admin.

Attributes

Remarks

Determine for how long the user will be able to use secondary, non strong auth for authentication, since last strong method authentication (password, pin or pattern) was used. After the returned timeout the user is required to use strong authentication method.

This method can be called on the DevicePolicyManager instance returned by #getParentProfileInstance(ComponentName) in order to retrieve restrictions on the parent profile.

On devices not supporting PackageManager#FEATURE_SECURE_LOCK_SCREEN feature, 0 is returned to indicate that no timeout is configured.

Java documentation for android.app.admin.DevicePolicyManager.getRequiredStrongAuthTimeout(android.content.ComponentName).

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