Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

BiometricPrompt.CryptoObject

public static final class BiometricPrompt.CryptoObject
extends Object

java.lang.Object
   ↳ android.hardware.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

added in API level 28
public BiometricPrompt.CryptoObject (Signature signature)

Parameters
signature Signature

This value must never be null.

BiometricPrompt.CryptoObject

added in API level 28
public BiometricPrompt.CryptoObject (Cipher cipher)

Parameters
cipher Cipher

This value must never be null.

BiometricPrompt.CryptoObject

added in API level 28
public BiometricPrompt.CryptoObject (Mac mac)

Parameters
mac Mac

This value must never be null.

Public methods

getCipher

added in API level 28
public Cipher getCipher ()

Get Cipher object.

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

getMac

added in API level 28
public Mac getMac ()

Get Mac object.

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

getSignature

added in API level 28
public Signature getSignature ()

Get Signature object.

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