diff options
| author | Janis Danisevskis <jdanis@google.com> | 2019-06-28 00:43:10 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-06-28 00:43:10 +0000 |
| commit | ecf4d593096a925fc0490abefe61e7f950a364f5 (patch) | |
| tree | 3c9b01ff75416117cd03d263e95f4a9456ffc3ac /core/java | |
| parent | 2944457958d4e3d0f59203480ed8592dccf9934e (diff) | |
| parent | 9aa722311923222f0a9893d56ca1486a601215dc (diff) | |
Merge "Gatekeeper generated aidl cpp bindings"
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/service/gatekeeper/GateKeeperResponse.aidl | 24 | ||||
| -rw-r--r-- | core/java/android/service/gatekeeper/IGateKeeperService.aidl | 87 |
2 files changed, 0 insertions, 111 deletions
diff --git a/core/java/android/service/gatekeeper/GateKeeperResponse.aidl b/core/java/android/service/gatekeeper/GateKeeperResponse.aidl deleted file mode 100644 index 966606e5b1aa..000000000000 --- a/core/java/android/service/gatekeeper/GateKeeperResponse.aidl +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2015 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package android.service.gatekeeper; - -/** - * Response object for a GateKeeper verification request. - * @hide - */ -parcelable GateKeeperResponse; - diff --git a/core/java/android/service/gatekeeper/IGateKeeperService.aidl b/core/java/android/service/gatekeeper/IGateKeeperService.aidl deleted file mode 100644 index abc6466e6d15..000000000000 --- a/core/java/android/service/gatekeeper/IGateKeeperService.aidl +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (C) 2015 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package android.service.gatekeeper; - -import android.service.gatekeeper.GateKeeperResponse; - -/** - * Interface for communication with GateKeeper, the - * secure password storage daemon. - * - * This must be kept manually in sync with system/core/gatekeeperd - * until AIDL can generate both C++ and Java bindings. - * - * @hide - */ -interface IGateKeeperService { - /** - * Enrolls a password, returning the handle to the enrollment to be stored locally. - * @param uid The Android user ID associated to this enrollment - * @param currentPasswordHandle The previously enrolled handle, or null if none - * @param currentPassword The previously enrolled plaintext password, or null if none. - * If provided, must verify against the currentPasswordHandle. - * @param desiredPassword The new desired password, for which a handle will be returned - * upon success. - * @return an EnrollResponse or null on failure - */ - GateKeeperResponse enroll(int uid, in byte[] currentPasswordHandle, in byte[] currentPassword, - in byte[] desiredPassword); - - /** - * Verifies an enrolled handle against a provided, plaintext blob. - * @param uid The Android user ID associated to this enrollment - * @param enrolledPasswordHandle The handle against which the provided password will be - * verified. - * @param The plaintext blob to verify against enrolledPassword. - * @return a VerifyResponse, or null on failure. - */ - GateKeeperResponse 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 a VerifyResponse with an attestation, or null on failure. - */ - GateKeeperResponse verifyChallenge(int uid, long challenge, in byte[] enrolledPasswordHandle, - in byte[] providedPassword); - - /** - * Retrieves the secure identifier for the user with the provided Android ID, - * or 0 if none is found. - * @param uid the Android user id - */ - long getSecureUserId(int uid); - - /** - * Clears secure user id associated with the provided Android ID. - * Must be called when password is set to NONE. - * @param uid the Android user id. - */ - void clearSecureUserId(int uid); - - /** - * Notifies gatekeeper that device setup has been completed and any potentially still existing - * state from before a factory reset can be cleaned up (if it has not been already). - */ - void reportDeviceSetupComplete(); -} |
