Sdílet prostřednictvím


IdentityCredential.SetAllowUsingExpiredKeys(Boolean) Method

Definition

Sets whether to allow using an authentication key which has been expired if no other key is available.

[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

Parameters

allowUsingExpiredKeys
Boolean

whether to allow using an authentication key which use count has been exceeded if no other key is available.

Attributes

Remarks

Sets whether to allow using an authentication key which has been expired if no other key is available. This must be called prior to calling #getEntries(byte[], Map, byte[], byte[]).

By default this is set to false.

This is only implemented in feature version 202101 or later. If not implemented, the call fails with UnsupportedOperationException. See android.content.pm.PackageManager#FEATURE_IDENTITY_CREDENTIAL_HARDWARE for known feature versions.

This member is deprecated. Use PresentationSession instead.

Java documentation for android.security.identity.IdentityCredential.setAllowUsingExpiredKeys(boolean).

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