Merge "Fix API feedback on AuthenticatedKeyMetadata" am: 506f1e6ea7 am: c21d08a9d7 am: cb27089420

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2350224

Change-Id: Ie72c03069cdec0791719efe27b550cddd08d7f50
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2022-12-14 18:55:32 +00:00
committed by Automerger Merge Worker
2 changed files with 4 additions and 4 deletions

View File

@@ -38278,7 +38278,7 @@ package android.security.identity {
ctor public AlreadyPersonalizedException(@NonNull String, @NonNull Throwable);
}
public class AuthenticationKeyMetadata {
public final class AuthenticationKeyMetadata {
method @NonNull public java.time.Instant getExpirationDate();
method @IntRange(from=0) public int getUsageCount();
}

View File

@@ -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");
* you may not use this file except in compliance with the License.
@@ -24,11 +24,11 @@ import java.time.Instant;
/**
* Data about authentication keys.
*/
public class AuthenticationKeyMetadata {
public final class AuthenticationKeyMetadata {
private int mUsageCount;
private Instant mExpirationDate;
AuthenticationKeyMetadata(int usageCount, Instant expirationDate) {
AuthenticationKeyMetadata(int usageCount, @NonNull Instant expirationDate) {
mUsageCount = usageCount;
mExpirationDate = expirationDate;
}