summaryrefslogtreecommitdiff
path: root/keystore/java/android/security/GateKeeper.java
diff options
context:
space:
mode:
authorRubin Xu <rubinxu@google.com>2017-01-30 23:39:12 +0000
committerRubin Xu <rubinxu@google.com>2017-02-02 17:53:32 +0000
commit59ced28f0f722d2517afc65d755ebb388902f76b (patch)
treedd9fd9a52c6558c73222620d96d8021cb429b843 /keystore/java/android/security/GateKeeper.java
parent451911ea3a324a153a30daa42e30987071fc16ed (diff)
Add hidden KeyProtection API to specify SID
Allows the caller to specify which SID the given key should be bound to, overriding the default rule of binding to the current root/fingerprint SID. This is a prerequsite for introducing synthetic password based authentication flow. Test: cts-tradefed run cts -m CtsKeystoreTestCases Bug: 33126414 Change-Id: Ide03c0f4fd33ecca7a169ea763c3d4d0b173d1dd
Diffstat (limited to 'keystore/java/android/security/GateKeeper.java')
-rw-r--r--keystore/java/android/security/GateKeeper.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/keystore/java/android/security/GateKeeper.java b/keystore/java/android/security/GateKeeper.java
index 7a2cbd06eb92..03df5de9b484 100644
--- a/keystore/java/android/security/GateKeeper.java
+++ b/keystore/java/android/security/GateKeeper.java
@@ -29,6 +29,8 @@ import android.service.gatekeeper.IGateKeeperService;
*/
public abstract class GateKeeper {
+ public static final long INVALID_SECURE_USER_ID = 0;
+
private GateKeeper() {}
public static IGateKeeperService getService() {