Stay organized with collections
Save and categorize content based on your preferences.
class AuthenticationKeyMetadata
Data about authentication keys.
Summary
Public methods |
Instant |
Gets expiration date for the authentication key.
|
Int |
Gets usage count for the authentication key.
|
Public methods
getExpirationDate
fun getExpirationDate(): Instant
Gets expiration date for the authentication key.
Return |
Instant |
the expiration date of the authentication key. This value cannot be null . |
getUsageCount
fun getUsageCount(): Int
Gets usage count for the authentication key.
Return |
Int |
the usage count Value is 0 or greater |
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,["# AuthenticationKeyMetadata\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nAuthenticationKeyMetadata\n=========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/security/identity/AuthenticationKeyMetadata \"View this page in Java\") \n\n```\nclass AuthenticationKeyMetadata\n```\n\n|---|----------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.security.identity.AuthenticationKeyMetadata](#) |\n\nData about authentication keys.\n\nSummary\n-------\n\n| Public methods ||\n|----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| [Instant](../../../java/time/Instant.html#) | [getExpirationDate](#getExpirationDate())`()` Gets expiration date for the authentication key. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getUsageCount](#getUsageCount())`()` Gets usage count for the authentication key. |\n\nPublic methods\n--------------\n\n### getExpirationDate\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getExpirationDate(): Instant\n```\n\nGets expiration date for the authentication key.\n\n| Return ||\n|---------------------------------------------|-----------------------------------------------------------------------------|\n| [Instant](../../../java/time/Instant.html#) | the expiration date of the authentication key. This value cannot be `null`. |\n\n### getUsageCount\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getUsageCount(): Int\n```\n\nGets usage count for the authentication key.\n\n| Return ||\n|----------------------------------------------------------------------------|---------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the usage count Value is 0 or greater |"]]