getCryptoObject
Gets a BiometricPrompt.CryptoObject which can be used with this PresentationSession.
If IdentityCredential is hardware-backed, the returned BiometricPrompt.CryptoObject is associated android.security.identity.PresentationSession object from the Android Framework. If it's not hardware-backed it's not defined which kind of object it's associated with. Because of this, this method is the preferred way to obtain a BiometricPrompt.CryptoObject rather than to construct it manually.
If no biometrics are enrolled on the device or if the device doesn't support biometrics the value null
may be returned. This just means the application won't have a BiometricPrompt.CryptoObject to pass to BiometricPrompt and will have to pass null
instead.
Return
A BiometricPrompt.CryptoObject which can be used with BiometricPrompt.