Added in API level 34
Deprecated in API level 10000

AuthenticationKeyMetadata


public final class AuthenticationKeyMetadata
extends Object

java.lang.Object
   ↳ android.security.identity.AuthenticationKeyMetadata


This class was deprecated in API level 10000.
Use java.security.KeyStore with the Android hardware-backed keystore instead.

Data about authentication keys.

Summary

Public methods

Instant getExpirationDate()

This method is deprecated. Use java.security.KeyStore with the Android hardware-backed keystore instead.

int getUsageCount()

This method is deprecated. Use java.security.KeyStore with the Android hardware-backed keystore instead.

Inherited methods

Public methods

getExpirationDate

Added in API level 34
public Instant getExpirationDate ()

This method is deprecated.
Use java.security.KeyStore with the Android hardware-backed keystore instead.

Gets expiration date for the authentication key.

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

getUsageCount

Added in API level 34
public int getUsageCount ()

This method is deprecated.
Use java.security.KeyStore with the Android hardware-backed keystore instead.

Gets usage count for the authentication key.

Returns
int the usage count.
Value is 0 or greater