Share via


KeyProtection.IsUserAuthenticationValidWhileOnBody Property

Definition

Returns true if the key will be de-authorized when the device is removed from the user's body.

public bool IsUserAuthenticationValidWhileOnBody { [Android.Runtime.Register("isUserAuthenticationValidWhileOnBody", "()Z", "", ApiSince=24)] get; }
[<get: Android.Runtime.Register("isUserAuthenticationValidWhileOnBody", "()Z", "", ApiSince=24)>]
member this.IsUserAuthenticationValidWhileOnBody : bool

Property Value

Attributes

Remarks

Returns true if the key will be de-authorized when the device is removed from the user's body. This option has no effect on keys that don't have an authentication validity duration, and has no effect if the device lacks an on-body sensor.

Authorization applies only to secret key and private key operations. Public key operations are not restricted.

Java documentation for android.security.keystore.KeyProtection.isUserAuthenticationValidWhileOnBody().

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