IAccountManager.aidl revision 603073430bbcb1bd29db7afb9b14e2732ad589fb
1/*
2 * Copyright (C) 2009 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.accounts;
18
19import android.accounts.IAccountManagerResponse;
20import android.accounts.Account;
21import android.os.Bundle;
22
23/**
24 * Central application service that provides account management.
25 */
26interface IAccountManager {
27    String getPassword(in Account account);
28    String getUserData(in Account account, String key);
29    Account[] getAccounts();
30    Account[] getAccountsByType(String accountType);
31    boolean addAccount(in Account account, String password, in Bundle extras);
32    void removeAccount(in Account account);
33    void invalidateAuthToken(String accountType, String authToken);
34    String peekAuthToken(in Account account, String authTokenType);
35    void setAuthToken(in Account account, String authTokenType, String authToken);
36    void setPassword(in Account account, String password);
37    void clearPassword(in Account account);
38    void setUserData(in Account account, String key, String value);
39
40    // interactive
41
42    void getAuthToken(in IAccountManagerResponse response, in Account account, String authTokenType,
43        boolean notifyOnAuthFailure);
44    void addAccountInteractively(in IAccountManagerResponse response, String accountType);
45    void authenticateAccount(in IAccountManagerResponse response, in Account account,
46        String password);
47    void updatePassword(in IAccountManagerResponse response, in Account account);
48    void editProperties(in IAccountManagerResponse response, String accountType);
49
50    // not interactive
51    void getPasswordStrength(in IAccountManagerResponse response, String accountType,
52        String password);
53    void checkUsernameExistence(in IAccountManagerResponse response, String accountType,
54        String username);
55}
56