KeyProtection.UserAuthenticationValidityDurationSeconds 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得成功驗證用戶之後,此密鑰已獲授權使用的時間持續時間(秒)。
public int UserAuthenticationValidityDurationSeconds { [Android.Runtime.Register("getUserAuthenticationValidityDurationSeconds", "()I", "", ApiSince=23)] get; }
[<get: Android.Runtime.Register("getUserAuthenticationValidityDurationSeconds", "()I", "", ApiSince=23)>]
member this.UserAuthenticationValidityDurationSeconds : int
屬性值
持續時間以秒為單位,如果 -1
每次使用金鑰都需要驗證,則為 。
- 屬性
備註
取得成功驗證用戶之後,此密鑰已獲授權使用的時間持續時間(秒)。 只有在需要使用者驗證時才有效(請參閱 #isUserAuthenticationRequired()
)。
此授權僅適用於秘密金鑰和私鑰作業。 公鑰作業不受限制。
的 android.security.keystore.KeyProtection.getUserAuthenticationValidityDurationSeconds()
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。