BiometricPrompt.CryptoObject

public static class BiometricPrompt.CryptoObject
extends Object

java.lang.Object
   ↳ androidx.biometrics.BiometricPrompt.CryptoObject


A wrapper class for the crypto objects supported by BiometricPrompt. Currently the framework supports Signature, Cipher, and Mac objects.

Summary

Public constructors

BiometricPrompt.CryptoObject(Signature signature)
BiometricPrompt.CryptoObject(Cipher cipher)
BiometricPrompt.CryptoObject(Mac mac)

Public methods

Cipher getCipher()

Get Cipher object.

Mac getMac()

Get Mac object.

Signature getSignature()

Get Signature object.

Inherited methods

Public constructors

BiometricPrompt.CryptoObject

public BiometricPrompt.CryptoObject (Signature signature)

Parameters
signature Signature

BiometricPrompt.CryptoObject

public BiometricPrompt.CryptoObject (Cipher cipher)

Parameters
cipher Cipher

BiometricPrompt.CryptoObject

public BiometricPrompt.CryptoObject (Mac mac)

Parameters
mac Mac

Public methods

getCipher

public Cipher getCipher ()

Get Cipher object.

Returns
Cipher Cipher object or null if this doesn't contain one.

getMac

public Mac getMac ()

Get Mac object.

Returns
Mac Mac object or null if this doesn't contain one.

getSignature

public Signature getSignature ()

Get Signature object.

Returns
Signature Signature object or null if this doesn't contain one.