語言

KeyInfo.IsUserAuthenticationValidWhileOnBody 屬性

定義

如果該金鑰在裝置從使用者體內移除後無法使用,則會回傳 true 。

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

屬性值

屬性

備註

如果該金鑰在裝置從使用者體內移除後無法使用,則會回傳 true 。 這僅適用於具有指定有效時間的金鑰,且僅適用於帶有本體感測器的裝置。 沒有機身感測器的裝置總是會回來 false 。

Java 文件 android.security.keystore.KeyInfo.isUserAuthenticationValidWhileOnBody()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於