summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorJanis Danisevskis <jdanis@google.com>2020-10-19 14:12:14 -0700
committerJanis Danisevskis <jdanis@google.com>2020-11-11 07:53:54 -0800
commitc5bdd77f1abbac6d6d0cf770312a9a3a816769b9 (patch)
treef63e5fb0ea2175642e9f772c04f88e6fbcc9e284 /api
parent145e11ff938971b63514dde1bbd887ddaa04f7ec (diff)
Keystore 2.0 SPI: Update KeyInfo and KeyGenParameterSpec
This patch adds set/getSecurityLevel to KeyInfo and KeyGenParameterSpec and it deprecates the superseded function isInSecureHardware. It also deprecates the system API set/getUid and replaces it with the more generic set/getNamespace. Test: None Change-Id: Id2f54596510954862b5077a935f3daf07211f29c
Diffstat (limited to 'api')
-rw-r--r--api/current.txt3
-rwxr-xr-xapi/system-current.txt7
2 files changed, 8 insertions, 2 deletions
diff --git a/api/current.txt b/api/current.txt
index 560b5f6c5cb0..a584f40be966 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -42808,10 +42808,11 @@ package android.security.keystore {
method public String getKeystoreAlias();
method public int getOrigin();
method public int getPurposes();
+ method public int getSecurityLevel();
method @NonNull public String[] getSignaturePaddings();
method public int getUserAuthenticationType();
method public int getUserAuthenticationValidityDurationSeconds();
- method public boolean isInsideSecureHardware();
+ method @Deprecated public boolean isInsideSecureHardware();
method public boolean isInvalidatedByBiometricEnrollment();
method public boolean isTrustedUserPresenceRequired();
method public boolean isUserAuthenticationRequired();
diff --git a/api/system-current.txt b/api/system-current.txt
index 85d7930cf43c..cb94dae02054 100755
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -9374,8 +9374,13 @@ package android.security.keystore {
ctor public DeviceIdAttestationException(@Nullable String, @Nullable Throwable);
}
+ public final class KeyGenParameterSpec implements java.security.spec.AlgorithmParameterSpec {
+ method public int getNamespace();
+ }
+
public static final class KeyGenParameterSpec.Builder {
- method @NonNull public android.security.keystore.KeyGenParameterSpec.Builder setUid(int);
+ method @NonNull public android.security.keystore.KeyGenParameterSpec.Builder setNamespace(int);
+ method @Deprecated @NonNull public android.security.keystore.KeyGenParameterSpec.Builder setUid(int);
}
}