DevicePolicyManager.ClearResetPasswordToken(ComponentName) Method

Definition

Called by a profile, device owner or holder of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_RESET_PASSWORD to revoke the current password reset token.

[Android.Runtime.Register("clearResetPasswordToken", "(Landroid/content/ComponentName;)Z", "GetClearResetPasswordToken_Landroid_content_ComponentName_Handler", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_RESET_PASSWORD")]
public virtual bool ClearResetPasswordToken (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("clearResetPasswordToken", "(Landroid/content/ComponentName;)Z", "GetClearResetPasswordToken_Landroid_content_ComponentName_Handler", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_RESET_PASSWORD")>]
abstract member ClearResetPasswordToken : Android.Content.ComponentName -> bool
override this.ClearResetPasswordToken : Android.Content.ComponentName -> bool

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with. Null if the caller is not a device admin.

Returns

true if the operation is successful, false otherwise.

Attributes

Remarks

Called by a profile, device owner or holder of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_RESET_PASSWORD to revoke the current password reset token.

On devices not supporting PackageManager#FEATURE_SECURE_LOCK_SCREEN feature, this method has no effect - the reset token should not have been set in the first place - and false is returned.

Java documentation for android.app.admin.DevicePolicyManager.clearResetPasswordToken(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