IAccountAuthenticator.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.IAccountAuthenticatorResponse; 20 21/** 22 * Service that allows the interaction with an authentication server. 23 */ 24oneway interface IAccountAuthenticator { 25 /** 26 * prompts the user for account information and adds the result to the IAccountManager 27 */ 28 void addAccount(in IAccountAuthenticatorResponse response, String accountType); 29 30 /** 31 * prompts the user for the credentials of the account 32 */ 33 void authenticateAccount(in IAccountAuthenticatorResponse response, String name, 34 String type, String password); 35 36 /** 37 * gets the password by either prompting the user or querying the IAccountManager 38 */ 39 void getAuthToken(in IAccountAuthenticatorResponse response, 40 String name, String type, String authTokenType); 41 42 /** 43 * does local analysis or uses a service in the cloud 44 */ 45 void getPasswordStrength(in IAccountAuthenticatorResponse response, 46 String accountType, String password); 47 48 /** 49 * checks with the login service in the cloud 50 */ 51 void checkUsernameExistence(in IAccountAuthenticatorResponse response, 52 String accountType, String username); 53 54 /** 55 * prompts the user for a new password and writes it to the IAccountManager 56 */ 57 void updatePassword(in IAccountAuthenticatorResponse response, String name, String type); 58 59 /** 60 * launches an activity that lets the user edit and set the properties for an authenticator 61 */ 62 void editProperties(in IAccountAuthenticatorResponse response, String accountType); 63} 64