IdentityCredential.SetAllowUsingExpiredKeys(Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定若無其他金鑰可用,是否允許使用已過期的認證金鑰。
[Android.Runtime.Register("setAllowUsingExpiredKeys", "(Z)V", "GetSetAllowUsingExpiredKeys_ZHandler", ApiSince=31)]
public virtual void SetAllowUsingExpiredKeys(bool allowUsingExpiredKeys);
[<Android.Runtime.Register("setAllowUsingExpiredKeys", "(Z)V", "GetSetAllowUsingExpiredKeys_ZHandler", ApiSince=31)>]
abstract member SetAllowUsingExpiredKeys : bool -> unit
override this.SetAllowUsingExpiredKeys : bool -> unit
參數
- allowUsingExpiredKeys
- Boolean
若無其他金鑰可用,是否允許使用已超過次數的認證金鑰。
- 屬性
備註
設定若無其他金鑰可用,是否允許使用已過期的認證金鑰。 必須在呼叫 #getEntries(byte[], Map, byte[], byte[])之前先呼叫此函數。
預設情況下,此設定為 false。
此功能僅在功能版本202101或更新版本中實作。 若未實作,呼叫將失敗。UnsupportedOperationException 請參閱 android.content.pm.PackageManager#FEATURE_IDENTITY_CREDENTIAL_HARDWARE 已知的功能版本。
此會員已被棄用。 請改用 PresentationSession。
Java 文件 android.security.identity.IdentityCredential.setAllowUsingExpiredKeys(boolean)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。