Compartilhar via


DevicePolicyManager.FlagEvictCredentialEncryptionKey Field

Definition

Caution

This constant will be removed in the future version. Use Android.App.Admin.DevicePolicyManagerFlags enum directly instead of this field.

Flag for #lockNow(int): also evict the user's credential encryption key from the keyring.

[Android.Runtime.Register("FLAG_EVICT_CREDENTIAL_ENCRYPTION_KEY", ApiSince=26)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.Admin.DevicePolicyManagerFlags enum directly instead of this field.", true)]
public const Android.App.Admin.DevicePolicyManagerFlags FlagEvictCredentialEncryptionKey = 1;
[<Android.Runtime.Register("FLAG_EVICT_CREDENTIAL_ENCRYPTION_KEY", ApiSince=26)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.Admin.DevicePolicyManagerFlags enum directly instead of this field.", true)>]
val mutable FlagEvictCredentialEncryptionKey : Android.App.Admin.DevicePolicyManagerFlags

Field Value

Value = 1
Attributes

Remarks

Flag for #lockNow(int): also evict the user's credential encryption key from the keyring. The user's credential will need to be entered again in order to derive the credential encryption key that will be stored back in the keyring for future use.

This flag can only be used by a profile owner when locking a managed profile when #getStorageEncryptionStatus returns #ENCRYPTION_STATUS_ACTIVE_PER_USER.

In order to secure user data, the user will be stopped and restarted so apps should wait until they are next run to perform further actions.

Java documentation for android.app.admin.DevicePolicyManager.FLAG_EVICT_CREDENTIAL_ENCRYPTION_KEY.

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