Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

CryptoObject

open class CryptoObject
kotlin.Any
   ↳ androidx.biometric.BiometricPrompt.CryptoObject

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

Summary

Public constructors

<init>(@NonNull signature: Signature)

<init>(@NonNull cipher: Cipher)

<init>(@NonNull mac: Mac)

Public methods

open Cipher?

Get Cipher object.

open Mac?

Get Mac object.

open Signature?

Get Signature object.

Public constructors

<init>

CryptoObject(@NonNull signature: Signature)

<init>

CryptoObject(@NonNull cipher: Cipher)

<init>

CryptoObject(@NonNull mac: Mac)

Public methods

getCipher

@Nullable open fun getCipher(): Cipher?

Get Cipher object.

Return
Cipher?: Cipher object or null if this doesn't contain one.

getMac

@Nullable open fun getMac(): Mac?

Get Mac object.

Return
Mac?: Mac object or null if this doesn't contain one.

getSignature

@Nullable open fun getSignature(): Signature?

Get Signature object.

Return
Signature?: Signature object or null if this doesn't contain one.