AndroidTokenEncryptionHandler
constructor(keyAlias: String = DEFAULT_KEY_ALIAS, requireBiometric: Boolean = false, userAuthenticationTimeout: Int = 5, promptInfo: BiometricPrompt.PromptInfo? = null, keyStore: KeyStore = AndroidKeystoreUtil.keyStore, keyPairGenerator: KeyPairGenerator = AndroidKeystoreUtil.getRsaKeyPairGenerator())
Parameters
keyAlias
the Android Keystore alias used for this handler's RSA key pair.
requireBiometric
when true, a biometric (or device credential, depending on Keystore capability) challenge is required to decrypt.
userAuthenticationTimeout
seconds after a successful biometric challenge during which decryption may proceed without re-prompting; 0 means "auth-per-use" (every decrypt shows the prompt). Ignored when requireBiometric is false.
promptInfo
the BiometricPrompt.PromptInfo to display for biometric challenges. Required (non-null) when requireBiometric is true.
keyStore
the KeyStore used to store/retrieve the RSA key pair.
keyPairGenerator
the generator used to create the RSA key pair on first use.