Added in API level 23
Deprecated in API level 28

FingerprintManager.CryptoObject

public static final class FingerprintManager.CryptoObject
extends Object

java.lang.Object
   ↳ android.hardware.fingerprint.FingerprintManager.CryptoObject


This class was deprecated in API level 28.
See BiometricPrompt.CryptoObject

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

Summary

Public constructors

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

Public methods

Cipher getCipher()

Get Cipher object.

Mac getMac()

Get Mac object.

Signature getSignature()

Get Signature object.

Inherited methods

Public constructors

CryptoObject

Added in API level 23
public CryptoObject (Signature signature)

Parameters
signature Signature: This value cannot be null.

CryptoObject

Added in API level 23
public CryptoObject (Cipher cipher)

Parameters
cipher Cipher: This value cannot be null.

CryptoObject

Added in API level 23
public CryptoObject (Mac mac)

Parameters
mac Mac: This value cannot be null.

Public methods

getCipher

Added in API level 23
public Cipher getCipher ()

Get Cipher object.

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

getMac

Added in API level 23
public Mac getMac ()

Get Mac object.

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

getSignature

Added in API level 23
public Signature getSignature ()

Get Signature object.

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