次の方法で共有


KeyInfo.IsUserAuthenticationValidWhileOnBody Property

Definition

Returns true if this key will become unusable when the device is removed from the user's body.

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

Property Value

Attributes

Remarks

Returns true if this key will become unusable when the device is removed from the user's body. This is possible only for keys with a specified validity duration, and only on devices with an on-body sensor. Always returns false on devices that lack an on-body sensor.

Java documentation for android.security.keystore.KeyInfo.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