Home | History | Annotate | Download | only in exchange

Lines Matching refs:hostAuth

48 import com.android.emailcommon.provider.HostAuth;
185 HostAuth ha = HostAuth.restoreHostAuthWithId(_context, mAccount.mHostAuthKeyRecv);
190 mSsl = (ha.mFlags & HostAuth.FLAG_SSL) != 0;
191 mTrustSsl = (ha.mFlags & HostAuth.FLAG_TRUST_ALL) != 0;
383 HostAuth ha = HostAuth.restoreHostAuthWithId(context, account.mHostAuthKeyRecv);
405 * @param hostAuth the HostAuth we're using to validate
406 * @return true if we have an updated HostAuth (with redirect address); false otherwise
408 protected boolean getValidateRedirect(EasResponse resp, HostAuth hostAuth) {
417 hostAuth.mAddress = mHostAddress;
431 public Bundle validateAccount(HostAuth hostAuth, Context context) {
435 userLog("Testing EAS: ", hostAuth.mAddress, ", ", hostAuth.mLogin,
436 ", ssl = ", hostAuth.shouldUseSsl() ? "1" : "0");
438 mHostAddress = hostAuth.mAddress;
439 mUserName = hostAuth.mLogin;
440 mPassword = hostAuth.mPassword;
442 setConnectionParameters(hostAuth);
445 mAccount.mEmailAddress = hostAuth.mLogin;
473 context, -1L, hostAuth.mAddress, hostAuth.mLogin);
499 getValidateRedirect(resp, hostAuth)) {
500 return validateAccount(hostAuth, context);
528 getValidateRedirect(resp, hostAuth)) {
529 return validateAccount(hostAuth, context);
659 * Convert an EAS server url to a HostAuth host address
675 * @return a HostAuth ready to be saved in an Account or null (failure)
680 HostAuth hostAuth = new HostAuth();
760 hostAuth = new HostAuth();
761 parseAutodiscover(parser, hostAuth);
763 if (hostAuth.mAddress != null) {
764 // Fill in the rest of the HostAuth
767 hostAuth.mLogin = mUserName;
768 hostAuth.mPassword = mPassword;
771 hostAuth.mPort = 443;
772 hostAuth.mProtocol = "eas";
773 hostAuth.mFlags =
774 HostAuth.FLAG_SSL | HostAuth.FLAG_AUTHENTICATE;
776 EmailServiceProxy.AUTO_DISCOVER_BUNDLE_HOST_AUTH, hostAuth);
809 void parseServer(XmlPullParser parser, HostAuth hostAuth)
826 hostAuth.mAddress = hostAddress;
834 void parseSettings(XmlPullParser parser, HostAuth hostAuth)
843 parseServer(parser, hostAuth);
849 void parseAction(XmlPullParser parser, HostAuth hostAuth)
862 parseSettings(parser, hostAuth);
868 void parseUser(XmlPullParser parser, HostAuth hostAuth)
887 void parseResponse(XmlPullParser parser, HostAuth hostAuth)
896 parseUser(parser, hostAuth);
898 parseAction(parser, hostAuth);
904 void parseAutodiscover(XmlPullParser parser, HostAuth hostAuth)
911 parseResponse(parser, hostAuth);
1217 protected void setConnectionParameters(HostAuth hostAuth) throws CertificateException {
1218 mSsl = hostAuth.shouldUseSsl();
1219 mTrustSsl = hostAuth.shouldTrustAllServerCerts();
1220 mClientCertAlias = hostAuth.mClientCertAlias;
1221 mPort = hostAuth.mPort;
1228 connManager.registerClientCert(mContext, hostAuth);
1799 HostAuth ha = HostAuth.restoreHostAuthWithId(mContext, mAccount.mHostAuthKeyRecv);