Added in API level 34
Deprecated in API level 10000

AuthenticationKeyMetadata


class AuthenticationKeyMetadata
kotlin.Any
   ↳ android.security.identity.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

Added in API level 34
fun getExpirationDate(): Instant

Deprecated: Use java.security.KeyStore with the Android hardware-backed keystore instead.

Gets expiration date for the authentication key.

Return
Instant the expiration date of the authentication key.
This value cannot be null.

getUsageCount

Added in API level 34
fun getUsageCount(): Int

Deprecated: Use java.security.KeyStore with the Android hardware-backed keystore instead.

Gets usage count for the authentication key.

Return
Int the usage count.
Value is 0 or greater