summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2015-04-09 19:14:42 -0700
committerAndres Morales <anmorales@google.com>2015-04-13 18:38:45 -0700
commitd9fc85ac27742adbe89e54fd35f3cb2469e94b91 (patch)
tree730af15f0d98b06e957c608bdf5667299e9d3508 /core/java/android
parent8fa5665f0e757cec0063fb4cf1354f1596f93a91 (diff)
Add challenge to IGateKeeperService
required for enrolling secondary auth form-factors Change-Id: Id5a1eb1ed22f01fbaabe8e4ebddfc42d58322625
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/service/gatekeeper/IGateKeeperService.aidl18
1 files changed, 16 insertions, 2 deletions
diff --git a/core/java/android/service/gatekeeper/IGateKeeperService.aidl b/core/java/android/service/gatekeeper/IGateKeeperService.aidl
index 675374d3dd2f..2f3e296f483f 100644
--- a/core/java/android/service/gatekeeper/IGateKeeperService.aidl
+++ b/core/java/android/service/gatekeeper/IGateKeeperService.aidl
@@ -45,7 +45,21 @@ interface IGateKeeperService {
* @param enrolledPasswordHandle The handle against which the provided password will be
* verified.
* @param The plaintext blob to verify against enrolledPassword.
- * @return true if success, false if failure
+ * @return True if the authentication was successful
*/
- boolean verify(int uid, in byte[] enrolledPasswordHandle, in byte[] providedPassword);
+ boolean verify(int uid, in byte[] enrolledPasswordHandle,
+ in byte[] providedPassword);
+ /**
+ * Verifies an enrolled handle against a provided, plaintext blob.
+ * @param uid The Android user ID associated to this enrollment
+ * @param challenge a challenge to authenticate agaisnt the device credential. If successful
+ * authentication occurs, this value will be written to the returned
+ * authentication attestation.
+ * @param enrolledPasswordHandle The handle against which the provided password will be
+ * verified.
+ * @param The plaintext blob to verify against enrolledPassword.
+ * @return an opaque attestation of authentication on success, or null.
+ */
+ byte[] verifyChallenge(int uid, long challenge, in byte[] enrolledPasswordHandle,
+ in byte[] providedPassword);
}