/packages/apps/Exchange/src/com/android/exchange/eas/ |
EasConnectionCache.java | 22 import com.android.emailcommon.provider.HostAuth; 41 * We use {@link HostAuth}'s id as the cache key. Multiple calls to {@link #getConnectionManager} 42 * with {@link HostAuth} objects with the same id will get the same connection object returned, 43 * i.e. we assume that the rest of the contents of the {@link HostAuth} objects are also the same, 44 * not just the id. If the {@link HostAuth} changes or is deleted, {@link #uncacheConnectionManager} 82 * Create an {@link EmailClientConnectionManager} for this {@link HostAuth}. 84 * @param hostAuth The {@link HostAuth} to which we want to connect. 85 * @return The {@link EmailClientConnectionManager} for hostAuth. 88 final HostAuth hostAuth [all...] |
EasFolderSync.java | 24 import com.android.emailcommon.provider.HostAuth; 92 * @param hostAuth 94 public EasFolderSync(final Context context, final HostAuth hostAuth) { 96 setDummyAccount(hostAuth);
|
EasOperation.java | 33 import com.android.emailcommon.provider.HostAuth; 180 protected EasOperation(final Context context, final Account account, final HostAuth hostAuth) { 181 this(context, account, new EasServerConnection(context, account, hostAuth)); 203 * supply a temporary {@link HostAuth}. 204 * @param hostAuth 206 protected final void setDummyAccount(final HostAuth hostAuth) { 208 mAccount.mEmailAddress = hostAuth.mLogin; 209 mConnection = new EasServerConnection(mContext, mAccount, hostAuth); [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
EmailClientConnectionManager.java | 24 import com.android.emailcommon.provider.HostAuth; 64 HostAuth hostAuth) { 66 boolean ssl = hostAuth.shouldUseSsl(); 67 int port = hostAuth.mPort; 75 SSLUtils.getHttpSocketFactory(context, hostAuth, keyManager, false), 79 SSLUtils.getHttpSocketFactory(context, hostAuth, keyManager, true), 92 public synchronized void registerClientCert(Context context, HostAuth hostAuth) 94 if (TextUtils.isEmpty(hostAuth.mClientCertAlias)) [all...] |
SSLUtils.java | 28 import com.android.emailcommon.provider.HostAuth; 51 // All secure factories are the same; all insecure factories are associated with HostAuth's 58 * A trust manager specific to a particular HostAuth. The first time a server certificate is 59 * encountered for the HostAuth, its certificate is saved; subsequent checks determine whether 64 private final HostAuth mHostAuth; 66 // The public key associated with the HostAuth; we'll lazily initialize it 69 SameCertificateCheckingTrustManager(Context context, HostAuth hostAuth) { 71 mHostAuth = hostAuth; 73 Cursor c = context.getContentResolver().query(HostAuth.CONTENT_URI [all...] |
/packages/apps/Exchange/src/com/android/exchange/service/ |
EasAutoDiscover.java | 10 import com.android.emailcommon.provider.HostAuth; 57 super(context, new Account(), new HostAuth()); 60 mHostAuth.mFlags = HostAuth.FLAG_AUTHENTICATE | HostAuth.FLAG_SSL; 97 final HostAuth hostAuth = parseAutodiscover(resp); 98 if (hostAuth != null) { 99 // Fill in the rest of the HostAuth 102 hostAuth.mLogin = mHostAuth.mLogin; 103 hostAuth.mPassword = mHostAuth.mPassword [all...] |
EasService.java | 32 import com.android.emailcommon.provider.HostAuth; 109 public Bundle validate(final HostAuth hostAuth) { 110 final EasFolderSync operation = new EasFolderSync(EasService.this, hostAuth);
|
EasServerConnection.java | 33 import com.android.emailcommon.provider.HostAuth; 110 // TODO: Make this private if possible. Subclasses must be careful about altering the HostAuth 112 protected final HostAuth mHostAuth; 140 final HostAuth hostAuth) { 142 mHostAuth = hostAuth; 149 this(context, account, HostAuth.restoreHostAuthWithId(context, account.mHostAuthKeyRecv));
|
EmailSyncAdapterService.java | 53 import com.android.emailcommon.provider.HostAuth; 384 public Bundle validate(final HostAuth hostAuth) { 388 return mEasService.validate(hostAuth); 393 return new EasFolderSync(EmailSyncAdapterService.this, hostAuth).doValidate(); [all...] |
/packages/apps/Email/src/com/android/email/mail/ |
Store.java | 32 import com.android.emailcommon.provider.HostAuth; 51 static final HashMap<HostAuth, Store> sStores = new HashMap<HostAuth, Store>(); 75 * HostAuth row. If this ever changes (e.g. such as the user updating the 89 HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); 91 if (hostAuth == null) return null; 92 Store store = sStores.get(hostAuth); 95 Class<? extends Store> klass = sStoreClasses.get(hostAuth.mProtocol); 109 // Don't cache this unless it's we've got a saved HostAuth [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSetupIncoming.java | 33 import com.android.emailcommon.provider.HostAuth; 68 final HostAuth hostAuth = mSetupData.getAccount().mHostAuthRecv; 69 mServiceInfo = EmailServiceUtils.getServiceInfo(this, hostAuth.mProtocol); 95 if (prefix != null && !hostAuth.mAddress.startsWith(prefix + ".")) { 96 hostAuth.mAddress = prefix + "." + hostAuth.mAddress;
|
AccountSecurity.java | 36 import com.android.emailcommon.provider.HostAuth; 197 HostAuth hostAuth = HostAuth.restoreHostAuthWithId(this, account.mHostAuthKeyRecv); 198 if (hostAuth == null) { 200 LogUtils.d(TAG, "No HostAuth: repost notification"); 214 hostAuth.mAddress));
|
AccountCheckSettingsFragment.java | 40 import com.android.emailcommon.provider.HostAuth; 268 final HostAuth autoDiscoverResult = ((AutoDiscoverResults) ex).mHostAuth; 394 public final HostAuth mHostAuth; 398 * @param hostAuth null for "no autodiscover", non-null for server info to return 400 public AutoDiscoverResults(boolean authenticationError, HostAuth hostAuth) { 407 mHostAuth = hostAuth; 464 HostAuth serverInfo = [all...] |
/packages/apps/Exchange/src/com/android/exchange/ |
EasSyncService.java | 48 import com.android.emailcommon.provider.HostAuth; 170 private HostAuth mHostAuth; 189 HostAuth ha = HostAuth.restoreHostAuthWithId(_context, mAccount.mHostAuthKeyRecv); 194 mSsl = (ha.mFlags & HostAuth.FLAG_SSL) != 0; 195 mTrustSsl = (ha.mFlags & HostAuth.FLAG_TRUST_ALL) != 0; 411 HostAuth ha = HostAuth.restoreHostAuthWithId(context, account.mHostAuthKeyRecv); 431 * @param hostAuth the HostAuth we're using to validat [all...] |
ExchangeService.java | 40 import com.android.emailcommon.provider.HostAuth; 119 public Bundle validate(HostAuth hostAuth) throws RemoteException { 121 hostAuth, ExchangeService.this); 126 HostAuth hostAuth = new HostAuth(); 127 hostAuth.mLogin = userName; 128 hostAuth.mPassword = password; 129 hostAuth.mFlags = HostAuth.FLAG_AUTHENTICATE | HostAuth.FLAG_SSL [all...] |
/packages/apps/Email/emailsync/src/com/android/emailsync/ |
AbstractSyncService.java | 27 import com.android.emailcommon.provider.HostAuth; 99 * @param hostAuth 103 public abstract Bundle validateAccount(HostAuth hostAuth, Context context); 128 * @param hostAuth 134 HostAuth hostAuth, Context context) { 138 return svc.validateAccount(hostAuth, context);
|
SyncManager.java | 55 import com.android.emailcommon.provider.HostAuth; 210 // HashMap of ConnectionManagers that all EAS threads can use (by HostAuth id) 506 // Don't forget to cache the HostAuth 507 HostAuth ha = HostAuth.restoreHostAuthWithId(getContext(), [all...] |
/packages/apps/Email/tests/src/com/android/email/service/ |
EmailBroadcastProcessorServiceTests.java | 28 import com.android.emailcommon.provider.HostAuth; 60 * Create a simple HostAuth with protocol 62 private HostAuth setupSimpleHostAuth(String protocol) { 63 HostAuth hostAuth = ProviderTestUtils.setupHostAuth(protocol, "name", false, mContext); 64 hostAuth.mProtocol = protocol; 65 return hostAuth;
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
ProviderTestUtils.java | 25 import com.android.emailcommon.provider.HostAuth; 83 * Create a hostauth record for test purposes 85 public static HostAuth setupHostAuth(String name, long accountId, boolean saveIt, 91 * Create a hostauth record for test purposes 93 public static HostAuth setupHostAuth(String protocol, String name, boolean saveIt, 95 HostAuth hostAuth = new HostAuth(); 97 hostAuth.mProtocol = protocol; 98 hostAuth.mAddress = "address-" + name [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
EmailServiceProxy.java | 28 import com.android.emailcommon.provider.HostAuth; 146 * @param hostAuth the hostauth object to validate 150 public Bundle validate(final HostAuth hostAuth) throws RemoteException { 154 mReturn = mService.validate(hostAuth); 173 * success) include a HostAuth record sufficient to enable the service to validate the user's 194 bundle.setClassLoader(HostAuth.class.getClassLoader());
|
/packages/apps/Email/src/com/android/email/mail/transport/ |
MailTransport.java | 25 import com.android.emailcommon.provider.HostAuth; 58 protected final HostAuth mHostAuth; 64 public MailTransport(Context context, String debugLabel, HostAuth hostAuth) { 68 mHostAuth = hostAuth; 90 return (mHostAuth.mFlags & HostAuth.FLAG_SSL) != 0; 94 return (mHostAuth.mFlags & HostAuth.FLAG_TLS) != 0; 98 return (mHostAuth.mFlags & HostAuth.FLAG_TRUST_ALL) != 0;
|
/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
MockTransport.java | 21 import com.android.emailcommon.provider.HostAuth; 97 return new MockTransport(context, new HostAuth()); 100 public MockTransport(Context context, HostAuth hostAuth) { 101 super(context, LOG_TAG, hostAuth); 291 connectionSecurity & (trustAllCertificates ? HostAuth.FLAG_TRUST_ALL : 0xff);
|
/packages/apps/Email/src/com/android/email/service/ |
EmailServiceUtils.java | 53 import com.android.emailcommon.provider.HostAuth; 283 final HostAuth hostAuthRecv = 284 HostAuth.restoreHostAuthWithId(context, account.mHostAuthKeyRecv); 308 // Get the EmailProvider Account/HostAuth 311 final HostAuth hostAuth = 312 HostAuth.restoreHostAuthWithId(context, account.mHostAuthKeyRecv); 313 if (hostAuth == null) { 317 final String newProtocol = protocolMap.get(hostAuth.mProtocol); 335 // Change the HostAuth to reference the new protocol; this has to be done befor [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
Account.java | 147 public transient HostAuth mHostAuthRecv; 148 public transient HostAuth mHostAuthSend; 440 public HostAuth getOrCreateHostAuthSend(Context context) { 443 mHostAuthSend = HostAuth.restoreHostAuthWithId(context, mHostAuthKeySend); 445 mHostAuthSend = new HostAuth(); 451 public HostAuth getOrCreateHostAuthRecv(Context context) { 454 mHostAuthRecv = HostAuth.restoreHostAuthWithId(context, mHostAuthKeyRecv); 456 mHostAuthRecv = new HostAuth(); 584 * @return the account's protocol (or null if the Account or HostAuth do not exist) 597 * @return the account's protocol (or null if the HostAuth doesn't not exist [all...] |
/packages/apps/Email/src/com/android/email/provider/ |
EmailProvider.java | 87 import com.android.emailcommon.provider.HostAuth; 220 private static final int HOSTAUTH = HOSTAUTH_BASE; 274 array.put(HOSTAUTH_BASE >> BASE_SHIFT, HostAuth.TABLE_NAME); 482 * Restore user Account and HostAuth data from our backup database 694 case HOSTAUTH: [all...] |