Stay organized with collections
Save and categorize content based on your preferences.
CryptoObject
class CryptoObject
A wrapper class for the crypto objects supported by FingerprintManager. Currently the framework supports Signature
, Cipher
and Mac
objects.
Summary
Public constructors
CryptoObject
CryptoObject(signature: Signature)
Parameters |
signature |
Signature: This value cannot be null . |
CryptoObject
CryptoObject(cipher: Cipher)
Parameters |
cipher |
Cipher: This value cannot be null . |
CryptoObject
CryptoObject(mac: Mac)
Parameters |
mac |
Mac: This value cannot be null . |
Public methods
getCipher
fun getCipher(): Cipher!
Deprecated: Deprecated in Java.
Get Cipher
object.
Return |
Cipher! |
Cipher object or null if this doesn't contain one. |
getMac
fun getMac(): Mac!
Deprecated: Deprecated in Java.
Get Mac
object.
Return |
Mac! |
Mac object or null if this doesn't contain one. |
getSignature
fun getSignature(): Signature!
Deprecated: Deprecated in Java.
Get Signature
object.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# FingerprintManager.CryptoObject\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nCryptoObject\n============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/hardware/fingerprint/FingerprintManager.CryptoObject \"View this page in Java\") \n\n```\nclass CryptoObject\n```\n\n|---|-------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.hardware.fingerprint.FingerprintManager.CryptoObject](#) |\n\n*** ** * ** ***\n\n| **This class was deprecated in API level 28.**\n|\n| See [android.hardware.biometrics.BiometricPrompt.CryptoObject](../biometrics/BiometricPrompt.CryptoObject.html#)\n\nA wrapper class for the crypto objects supported by FingerprintManager. Currently the framework supports [Signature](../../../java/security/Signature.html#), [Cipher](../../../javax/crypto/Cipher.html#) and [Mac](../../../javax/crypto/Mac.html#) objects.\n\nSummary\n-------\n\n| Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------|---|\n| [CryptoObject](#CryptoObject(java.security.Signature))`(`signature:` `[Signature](../../../java/security/Signature.html#)`)` \u003cbr /\u003e |\n| [CryptoObject](#CryptoObject(javax.crypto.Cipher))`(`cipher:` `[Cipher](../../../javax/crypto/Cipher.html#)`)` \u003cbr /\u003e |\n| [CryptoObject](#CryptoObject(javax.crypto.Mac))`(`mac:` `[Mac](../../../javax/crypto/Mac.html#)`)` \u003cbr /\u003e |\n\n| Public methods ||\n|------------------------------------------------------|-----------------------------------------------------------------------------------------------------|\n| [Cipher](../../../javax/crypto/Cipher.html#)! | [getCipher](#getCipher())`()` Get [Cipher](../../../javax/crypto/Cipher.html#) object. |\n| [Mac](../../../javax/crypto/Mac.html#)! | [getMac](#getMac())`()` Get [Mac](../../../javax/crypto/Mac.html#) object. |\n| [Signature](../../../java/security/Signature.html#)! | [getSignature](#getSignature())`()` Get [Signature](../../../java/security/Signature.html#) object. |\n\nPublic constructors\n-------------------\n\n### CryptoObject\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCryptoObject(signature: Signature)\n```\n\n| Parameters ||\n|-------------|-----------------------------------------------------------------------------------|\n| `signature` | [Signature](../../../java/security/Signature.html#): This value cannot be `null`. |\n\n### CryptoObject\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCryptoObject(cipher: Cipher)\n```\n\n| Parameters ||\n|----------|----------------------------------------------------------------------------|\n| `cipher` | [Cipher](../../../javax/crypto/Cipher.html#): This value cannot be `null`. |\n\n### CryptoObject\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCryptoObject(mac: Mac)\n```\n\n| Parameters ||\n|-------|----------------------------------------------------------------------|\n| `mac` | [Mac](../../../javax/crypto/Mac.html#): This value cannot be `null`. |\n\nPublic methods\n--------------\n\n### getCipher\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getCipher(): Cipher!\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nGet [Cipher](../../../javax/crypto/Cipher.html#) object.\n\n| Return ||\n|-----------------------------------------------|------------------------------------------------------------------------------------------|\n| [Cipher](../../../javax/crypto/Cipher.html#)! | [Cipher](../../../javax/crypto/Cipher.html#) object or null if this doesn't contain one. |\n\n### getMac\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getMac(): Mac!\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nGet [Mac](../../../javax/crypto/Mac.html#) object.\n\n| Return ||\n|-----------------------------------------|------------------------------------------------------------------------------------|\n| [Mac](../../../javax/crypto/Mac.html#)! | [Mac](../../../javax/crypto/Mac.html#) object or null if this doesn't contain one. |\n\n### getSignature\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getSignature(): Signature!\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nGet [Signature](../../../java/security/Signature.html#) object.\n\n| Return ||\n|------------------------------------------------------|-------------------------------------------------------------------------------------------------|\n| [Signature](../../../java/security/Signature.html#)! | [Signature](../../../java/security/Signature.html#) object or null if this doesn't contain one. |"]]