HomeSort by relevance Sort by last modified time
    Searched full:authtoken (Results 1 - 25 of 38) sorted by null

1 2

  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/
Authenticator.java 39 * for syncing, we want to use an authtoken instead - so we're not continually
42 * we need to return the appropriate authToken for the specified account. If we
43 * already have an authToken stored in the account, we return that authToken. If
45 * to the sample service to fetch an authToken. If that fails (or we didn't have
92 // If the caller requested an authToken type we don't support, then
101 // the server for an appropriate AuthToken.
105 final String authToken = NetworkUtilities.authenticate(account.name, password);
106 if (!TextUtils.isEmpty(authToken)) {
110 result.putString(AccountManager.KEY_AUTHTOKEN, authToken);
    [all...]
AuthenticatorActivity.java 70 * doesn't cause the user's password or authToken to be changed on the
186 * authToken that's returned from the server as the 'password' for this
191 private void finishLogin(String authToken) {
213 * @param authToken the authentication token returned by the server, or NULL if
216 public void onAuthenticationResult(String authToken) {
218 boolean success = ((authToken != null) && (authToken.length() > 0));
229 finishLogin(authToken);
312 protected void onPostExecute(final String authToken) {
314 // communicate the authToken (or null for an error)
    [all...]
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/
Constants.java 26 * Authtoken type string.
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
NetworkUtilities.java 67 public static final String PARAM_AUTH_TOKEN = "authtoken";
123 String authToken = null;
129 authToken = ireader.readLine().trim();
132 if ((authToken != null) && (authToken.length() > 0)) {
134 return authToken;
140 Log.e(TAG, "IOException when getting authtoken", e);
154 * @param authtoken The authtoken stored in the AccountManager for this
161 Account account, String authtoken, long serverSyncState, List<RawContact> dirtyContacts
    [all...]
  /frameworks/base/core/java/android/accounts/
IAccountManager.aidl 38 void invalidateAuthToken(String accountType, String authToken);
40 void setAuthToken(in Account account, String authTokenType, String authToken);
IAccountAuthenticator.aidl 47 * Gets the user-visible label of the given authtoken type.
AccountManagerService.java 69 * A system service that provides account, password, and authtoken management for all
109 private static final String AUTHTOKENS_AUTHTOKEN = "authtoken";
612 public void invalidateAuthToken(String accountType, String authToken) {
619 if (authToken == null) throw new IllegalArgumentException("authToken is null");
627 invalidateAuthTokenLocked(db, accountType, authToken);
638 private void invalidateAuthTokenLocked(SQLiteDatabase db, String accountType, String authToken) {
639 if (authToken == null || accountType == null) {
652 new String[]{authToken, accountType});
667 private boolean saveAuthTokenToDatabase(Account account, String type, String authToken) {
    [all...]
AccountManager.java 167 public static final String KEY_AUTHTOKEN = "authtoken";
574 * @param authToken The auth token to invalidate, may be null
576 public void invalidateAuthToken(final String accountType, final String authToken) {
579 if (authToken != null) {
580 mService.invalidateAuthToken(accountType, authToken);
705 * @param authToken The auth token to add to the cache
707 public void setAuthToken(Account account, final String authTokenType, final String authToken) {
711 mService.setAuthToken(account, authTokenType, authToken);
    [all...]
  /frameworks/base/core/res/res/layout/
permissions_account_and_authtokentype.xml 18 Defines the layout of an account and authtoken type permission item.
19 Contains an icon, the account type and name and the authtoken type.
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/
SyncAdapter.java 86 // Use the account manager to request the AuthToken we'll need
87 // to talk to our sample server. If we don't have an AuthToken
89 // and AuthToken.
90 final String authtoken = mAccountManager.blockingGetAuthToken(account, local
101 updatedContacts = NetworkUtilities.syncContacts(account, authtoken,
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/
TestAuthenticator.java 79 * Just return the user name as the authtoken.
108 // null means we don't support multiple authToken types
  /development/samples/SampleSyncAdapter/samplesyncadapter_server/
web_services.py 60 an authtoken as the only content. If auth fails, we'll send an "invalid
96 self.authtoken = self.request.get('authtoken')
102 (self.authtoken == BaseWebServiceHandler.ACCT_AUTH_TOKEN)):
114 request to include username and password fields. It returns authtoken
130 request to include username and authtoken. If the authtoken is valid
  /external/chromium/chrome/common/net/gaia/
gaia_authenticator.cc 226 // Check if we received a valid AuthToken; if not, ignore it.
278 // Check if we received a valid AuthToken; if not, ignore it.
286 // Specifically, the entire string is the AuthToken, and looks like:
287 // "<token>" rather than "AuthToken=<token>". Thus, we need not use
gaia_authenticator.h 209 // Retrieve AuthToken, if previously authenticated; otherwise returns "".
  /packages/apps/Email/src/com/android/email/service/
EasTestAuthenticatorService.java 96 // null means we don't have compartmentalized authtoken types
EasAuthenticatorService.java 138 // null means we don't have compartmentalized authtoken types
PopImapAuthenticatorService.java 116 // null means we don't have compartmentalized authtoken types
  /packages/experimental/AndroidVendorSecurityTool/src/com/google/android/googleapps/
IGoogleLoginService.aidl 275 void saveAuthToken(String username, String service, String authToken);
278 * Try to obtain an authtoken for the username and service in
280 * password in the database (and return the authtoken).
LoginData.java 169 sb.append("\n authtoken: ");
  /development/apps/Development/res/values/
strings.xml 180 <string name="accounts_tester_enter_auth_token_type">Enter the authtoken type:</string>
186 <string name="accounts_tester_desired_authtokentype_label">authtoken type:</string>
  /cts/tests/tests/accounts/src/android/accounts/cts/
MockAccountAuthenticator.java 165 * Gets the authtoken for an account.
AccountManagerTest.java 591 // Ask for the AuthToken
613 // Ask for the AuthToken
    [all...]
  /external/chromium/chrome/browser/policy/
device_token_fetcher.h 146 // Contains the AuthToken for the device management server.
  /packages/experimental/AndroidVendorSecurityTool/src/com/google/android/googlelogin/
GoogleLoginServiceConstants.java 45 public static final String AUTHTOKEN_KEY = "authtoken"; // AccountManager.KEY_AUTHTOKEN;
  /development/apps/Development/src/com/android/development/
AccountsTester.java 441 String authToken = result.getString(AccountManager.KEY_AUTHTOKEN);
442 mAccountManager.invalidateAuthToken(mAccount.type, authToken);

Completed in 1778 milliseconds

1 2