Merge "Fix API feedback on AuthenticatedKeyMetadata"
This commit is contained in:
@@ -37654,7 +37654,7 @@ package android.security.identity {
|
|||||||
ctor public AlreadyPersonalizedException(@NonNull String, @NonNull Throwable);
|
ctor public AlreadyPersonalizedException(@NonNull String, @NonNull Throwable);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AuthenticationKeyMetadata {
|
public final class AuthenticationKeyMetadata {
|
||||||
method @NonNull public java.time.Instant getExpirationDate();
|
method @NonNull public java.time.Instant getExpirationDate();
|
||||||
method @IntRange(from=0) public int getUsageCount();
|
method @IntRange(from=0) public int getUsageCount();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2019 The Android Open Source Project
|
* Copyright 2022 The Android Open Source Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -24,11 +24,11 @@ import java.time.Instant;
|
|||||||
/**
|
/**
|
||||||
* Data about authentication keys.
|
* Data about authentication keys.
|
||||||
*/
|
*/
|
||||||
public class AuthenticationKeyMetadata {
|
public final class AuthenticationKeyMetadata {
|
||||||
private int mUsageCount;
|
private int mUsageCount;
|
||||||
private Instant mExpirationDate;
|
private Instant mExpirationDate;
|
||||||
|
|
||||||
AuthenticationKeyMetadata(int usageCount, Instant expirationDate) {
|
AuthenticationKeyMetadata(int usageCount, @NonNull Instant expirationDate) {
|
||||||
mUsageCount = usageCount;
|
mUsageCount = usageCount;
|
||||||
mExpirationDate = expirationDate;
|
mExpirationDate = expirationDate;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user