setAllowUsingExpiredKeys

open fun setAllowUsingExpiredKeys(allowUsingExpiredKeys: Boolean)

Deprecated

Use PresentationSession instead.

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 or using a BiometricPrompt.CryptoObject which references this object.

By default this is set to false.

This is only implemented on FEATURE_VERSION_202201, fails with UnsupportedOperationException if using a store with a lesser version.

Parameters

allowUsingExpiredKeys

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