setUserAuthenticationRequired

Method to specify if user authentication is required to use the key.

On devices with prior to API 30, userAuthenticationType must be .USER_AUTHENTICATION_TYPE_LSKF combined with .USER_AUTHENTICATION_TYPE_BIOMETRIC. On API 30 and later either flag may be used independently. The value cannot be zero if user authentication is required.

By default, no user authentication is required.

Return

the builder.

Parameters

required

True if user authentication is required, false otherwise.

timeoutMillis

If 0, user authentication is required for every use of the key, otherwise it's required within the given amount of milliseconds.

userAuthenticationTypes

a combination of UserAuthenticationType flags.