getCryptoObject

Gets a BiometricPrompt.CryptoObject which can be used with this IdentityCredential.

If IdentityCredential is hardware-backed, the returned BiometricPrompt.CryptoObject is associated android.security.identity.IdentityCredential 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 the credential has no access control profiles with user-authentication and timeout 0, 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 or null.