Home
last modified time | relevance | path

Searched refs:hostAuth (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
DHostAuthCompat.java31 public HostAuthCompat(HostAuth hostAuth) { in HostAuthCompat() argument
32 mProtocol = hostAuth.mProtocol; in HostAuthCompat()
33 mAddress = hostAuth.mAddress; in HostAuthCompat()
34 mPort = hostAuth.mPort; in HostAuthCompat()
35 mFlags = hostAuth.mFlags; in HostAuthCompat()
36 mLogin = hostAuth.mLogin; in HostAuthCompat()
37 mPassword = hostAuth.mPassword; in HostAuthCompat()
38 mDomain = hostAuth.mDomain; in HostAuthCompat()
39 mClientCertAlias = hostAuth.mClientCertAlias; in HostAuthCompat()
40 mServerCert = hostAuth.mServerCert; in HostAuthCompat()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DEmailClientConnectionManager.java64 HostAuth hostAuth) { in newInstance() argument
66 boolean ssl = hostAuth.shouldUseSsl(); in newInstance()
67 int port = hostAuth.mPort; in newInstance()
75 SSLUtils.getHttpSocketFactory(context, hostAuth, keyManager, false), in newInstance()
79 SSLUtils.getHttpSocketFactory(context, hostAuth, keyManager, true), in newInstance()
92 public synchronized void registerClientCert(Context context, HostAuth hostAuth) in registerClientCert() argument
94 if (TextUtils.isEmpty(hostAuth.mClientCertAlias)) { in registerClientCert()
98 String schemeName = makeSchemeForClientCert(hostAuth.mClientCertAlias, in registerClientCert()
99 hostAuth.shouldTrustAllServerCerts()); in registerClientCert()
104 + hostAuth.mClientCertAlias + "]"); in registerClientCert()
[all …]
DSSLUtils.java73 SameCertificateCheckingTrustManager(Context context, HostAuth hostAuth) { in SameCertificateCheckingTrustManager() argument
75 mHostAuth = hostAuth; in SameCertificateCheckingTrustManager()
79 new String[] {Long.toString(hostAuth.mId)}, null); in SameCertificateCheckingTrustManager()
159 final Context context, final HostAuth hostAuth, final KeyManager keyManager, in getSSLSocketFactory() argument
171 new SameCertificateCheckingTrustManager(context, hostAuth)}; in getSSLSocketFactory()
198 public static SSLSocketFactory getHttpSocketFactory(Context context, HostAuth hostAuth, in getHttpSocketFactory() argument
200 javax.net.ssl.SSLSocketFactory underlying = getSSLSocketFactory(context, hostAuth, in getHttpSocketFactory()
/packages/apps/Email/provider_src/com/android/email/mail/
DStore.java90 HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); in getInstance() local
92 if (hostAuth == null) return null; in getInstance()
94 Store store = sStores.get(hostAuth); in getInstance()
111 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); in createInstanceInternal() local
112 Class<? extends Store> klass = sStoreClasses.get(hostAuth.mProtocol); in createInstanceInternal()
128 if (hostAuth.mId != EmailContent.NOT_SAVED && cacheInstance) { in createInstanceInternal()
129 sStores.put(hostAuth, store); in createInstanceInternal()
/packages/apps/Email/provider_src/com/android/email/mail/internet/
DAuthenticationCache.java98 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); in getEntry() local
99 final Credential credential = hostAuth.getOrCreateCredential(context); in getEntry()
107 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); in getEntry() local
108 final Credential credential = hostAuth.getCredential(context); in getEntry()
145 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); in saveEntry() local
146 final Credential cred = hostAuth.getOrCreateCredential(context); in saveEntry()
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTestUtils.java93 HostAuth hostAuth = new HostAuth(); in setupHostAuth() local
95 hostAuth.mProtocol = protocol; in setupHostAuth()
96 hostAuth.mAddress = "address-" + name; in setupHostAuth()
97 hostAuth.mPort = 100; in setupHostAuth()
98 hostAuth.mFlags = 200; in setupHostAuth()
99 hostAuth.mLogin = "login-" + name; in setupHostAuth()
100 hostAuth.mPassword = "password-" + name; in setupHostAuth()
101 hostAuth.mDomain = "domain-" + name; in setupHostAuth()
104 hostAuth.save(context); in setupHostAuth()
106 return hostAuth; in setupHostAuth()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupCredentialsFragment.java334 public static void populateHostAuthWithResults(final Context context, final HostAuth hostAuth, in populateHostAuthWithResults() argument
341 hostAuth.mPassword = password; in populateHostAuthWithResults()
342 hostAuth.removeCredential(); in populateHostAuthWithResults()
344 Credential cred = hostAuth.getOrCreateCredential(context); in populateHostAuthWithResults()
355 hostAuth.mPassword = null; in populateHostAuthWithResults()
357 hostAuth.mClientCertAlias = results.getString(EXTRA_CLIENT_CERT); in populateHostAuthWithResults()
DAuthenticationView.java140 public void setAuthInfo(final boolean offerOAuth, final HostAuth hostAuth) { in setAuthInfo() argument
144 final Credential cred = hostAuth.getCredential(getContext()); in setAuthInfo()
156 mPasswordEdit.setText(hostAuth.mPassword); in setAuthInfo()
DAccountCheckSettingsFragment.java293 public AutoDiscoverResults(boolean authenticationError, HostAuth hostAuth) { in AutoDiscoverResults() argument
300 mHostAuth = hostAuth; in AutoDiscoverResults()
DAccountSetupFinal.java1128 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(this); in initiateAccountCreation() local
1129 if (hostAuth.mProtocol.equals(getString(R.string.protocol_eas))) { in initiateAccountCreation()
/packages/apps/Email/provider_src/com/android/email/service/
DEmailServiceUtils.java311 final boolean contacts, final HostAuth hostAuth, in setupAccountManagerAccount() argument
313 if (hostAuth == null) { in setupAccountManagerAccount()
319 options.putString(EasAuthenticatorService.OPTIONS_PASSWORD, hostAuth.mPassword); in setupAccountManagerAccount()
323 final EmailServiceInfo info = getServiceInfo(context, hostAuth.mProtocol); in setupAccountManagerAccount()
340 final HostAuth hostAuth = in updateAccountManagerType() local
342 if (hostAuth == null) { in updateAccountManagerType()
346 final String newProtocol = protocolMap.get(hostAuth.mProtocol); in updateAccountManagerType()
367 resolver.update(ContentUris.withAppendedId(HostAuth.CONTENT_URI, hostAuth.mId), in updateAccountManagerType()
430 final String accountType = protocolMap.get(hostAuth.mProtocol + "_type"); in updateAccountManagerType()
/packages/apps/Email/tests/src/com/android/email/service/
DEmailBroadcastProcessorServiceTests.java63 HostAuth hostAuth = ProviderTestUtils.setupHostAuth(protocol, "name", false, mContext); in setupSimpleHostAuth() local
64 hostAuth.mProtocol = protocol; in setupSimpleHostAuth()
65 return hostAuth; in setupSimpleHostAuth()
/packages/apps/Email/tests/src/com/android/email/mail/transport/
DMockTransport.java100 public MockTransport(Context context, HostAuth hostAuth) { in MockTransport() argument
101 super(context, LOG_TAG, hostAuth); in MockTransport()
/packages/apps/Email/provider_src/com/android/email/activity/setup/
DAccountSecurity.java390 final HostAuth hostAuth = account.mHostAuthRecv; in tryAdvanceSecurity() local
391 if (hostAuth == null) { in tryAdvanceSecurity()
407 hostAuth.mAddress)); in tryAdvanceSecurity()
/packages/apps/Email/provider_src/com/android/email/mail/transport/
DMailTransport.java65 public MailTransport(Context context, String debugLabel, HostAuth hostAuth) { in MailTransport() argument
69 mHostAuth = hostAuth; in MailTransport()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DAccount.java524 HostAuth hostAuth = getOrCreateHostAuthRecv(context); in getProtocol() local
525 if (hostAuth != null) { in getProtocol()
526 return hostAuth.mProtocol; in getProtocol()
/packages/apps/Email/provider_src/com/android/email/provider/
DEmailProvider.java1587 HostAuth hostAuth = new HostAuth(); in restoreHostAuth() local
1588 hostAuth.restore(c); in restoreHostAuth()
1589 return hostAuth; in restoreHostAuth()
1637 HostAuth hostAuth = restoreHostAuth(fromDatabase, in copyAccountTables() local
1641 if (hostAuth == null) continue; in copyAccountTables()
1643 hostAuth.toContentValues()); in copyAccountTables()
1647 hostAuth = restoreHostAuth(fromDatabase, account.mHostAuthKeySend); in copyAccountTables()
1651 if (hostAuth == null) continue; in copyAccountTables()
1653 HostAuth.TABLE_NAME, null, hostAuth.toContentValues()); in copyAccountTables()
6217 HostAuth hostAuth = in dump() local
[all …]