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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。