Searched refs:HostAuth (Results 1 - 25 of 51) sorted by relevance

123

/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
H A DHostAuth.aidl18 parcelable HostAuth
H A DHostAuth.java38 public class HostAuth extends EmailContent implements Parcelable { class in inherits:EmailContent,Parcelable
39 public static final String TABLE_NAME = "HostAuth";
97 public HostAuth() { method in class:HostAuth
104 * Restore a HostAuth from the database, given its unique id
107 * @return the instantiated HostAuth
109 public static HostAuth restoreHostAuthWithId(Context context, long id) {
110 return EmailContent.restoreContentWithId(context, HostAuth.class,
111 HostAuth.CONTENT_URI, HostAuth.CONTENT_PROJECTION, id);
115 * Returns the credential object for this HostAuth
460 public HostAuth(Parcel in) { method in class:HostAuth
[all...]
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
H A DHostAuthTests.java30 * Unit tests for the HostAuth inner class.
40 HostAuth ha = new HostAuth();
80 HostAuth ha = new HostAuth();
84 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags);
88 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags);
92 assertEquals(~HostAuth.FLAG_AUTHENTICATE, ha.mFlags);
96 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags);
100 assertEquals(~HostAuth
[all...]
H A DAccountTest.java62 * A factory method to generate HostAuth values that allow us to serialize the Account object.
63 * See {@link HostAuthTests} for tests that exercise serialization of HostAuth.
67 * @return a HostAuth that includes the given username and password
69 private static HostAuth getHostAuthJSON(String username, String password) {
70 final HostAuth ha = new HostAuth();
/packages/apps/Email/tests/src/com/android/email/provider/
H A DAccountBackupRestoreTests.java28 import com.android.emailcommon.provider.HostAuth;
99 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI));
107 cr.delete(HostAuth.CONTENT_URI, null, null);
111 assertEquals(0, EmailContent.count(mMockContext, HostAuth.CONTENT_URI));
120 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI));
130 HostAuth recv = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeyRecv);
132 HostAuth send = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeySend);
144 recv = HostAuth
[all...]
/packages/apps/Email/src/com/android/email/activity/setup/
H A DAccountSetupOutgoingFragment.java48 import com.android.emailcommon.provider.HostAuth;
102 mBaseScheme = HostAuth.LEGACY_SCHEME_SMTP;
181 new SpinnerOption(HostAuth.FLAG_NONE, context.getString(
183 new SpinnerOption(HostAuth.FLAG_SSL, context.getString(
185 new SpinnerOption(HostAuth.FLAG_SSL | HostAuth.FLAG_TRUST_ALL, context.getString(
187 new SpinnerOption(HostAuth.FLAG_TLS, context.getString(
189 new SpinnerOption(HostAuth.FLAG_TLS | HostAuth.FLAG_TRUST_ALL, context.getString(
224 final HostAuth sendAut
[all...]
H A DAccountSetupIncomingFragment.java50 import com.android.emailcommon.provider.HostAuth;
200 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(mAppContext);
209 recvAuth.setConnection(recvAuth.mProtocol, domain, HostAuth.PORT_UNKNOWN,
210 HostAuth.FLAG_NONE);
236 new SpinnerOption(HostAuth.FLAG_NONE, context.getString(
239 new SpinnerOption(HostAuth.FLAG_SSL, context.getString(
242 new SpinnerOption(HostAuth.FLAG_SSL | HostAuth.FLAG_TRUST_ALL, context.getString(
246 new SpinnerOption(HostAuth.FLAG_TLS, context.getString(
248 securityTypes.add(new SpinnerOption(HostAuth
[all...]
H A DAccountServerBaseFragment.java34 import com.android.emailcommon.provider.HostAuth;
61 protected HostAuth mLoadedSendAuth;
62 protected HostAuth mLoadedRecvAuth;
252 final HostAuth sendAuth = account.getOrCreateHostAuthSend(mAppContext);
255 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(mAppContext);
H A DAccountSetupFinal.java48 import com.android.emailcommon.provider.HostAuth;
323 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(this);
325 final HostAuth sendAuth = account.getOrCreateHostAuthSend(this);
331 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(this);
334 final HostAuth sendAuth = account.getOrCreateHostAuthSend(this);
825 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(this);
831 final HostAuth sendAuth = account.getOrCreateHostAuthSend(this);
860 final String primaryProtocol = HostAuth.getProtocolFromString(mProvider.incomingUri);
868 final String alternateProtocol = HostAuth.getProtocolFromString(
873 final HostAuth recvAut
[all...]
H A DSetupDataFragment.java11 import com.android.emailcommon.provider.HostAuth;
175 * @param context For resolving the service info, and possibly loading the {@link HostAuth}
199 * @param context context to possibly load the {@link HostAuth} from the provider
207 final HostAuth recvAuth = mAccount.getOrCreateHostAuthRecv(context);
212 final HostAuth recvAuth = mAccount.getOrCreateHostAuthRecv(context);
219 final HostAuth recvAuth = mAccount.getOrCreateHostAuthRecv(context);
/packages/apps/Exchange/src/com/android/exchange/eas/
H A DEasAutoDiscover.java9 import com.android.emailcommon.provider.HostAuth;
68 private HostAuth mHostAuth;
80 mHostAuth = new HostAuth();
85 mHostAuth.mFlags = HostAuth.FLAG_SSL | HostAuth.FLAG_AUTHENTICATE;
201 // Fill in the rest of the HostAuth
210 mHostAuth.mFlags = HostAuth.FLAG_SSL | HostAuth.FLAG_AUTHENTICATE;
231 * @param hostAuth The {@link HostAuth} to populate with the results of parsing.
235 private static void parseServer(final XmlPullParser parser, final HostAuth hostAut
[all...]
H A DEasConnectionCache.java22 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.
88 final HostAuth hostAuth)
90 LogUtils.d(Eas.LOG_TAG, "Creating new connection manager for HostAuth %d", hostAuth.mId);
103 * Get the correct {@link EmailClientConnectionManager} for a {@link HostAuth} fro
[all...]
/packages/apps/Email/src/com/android/email/mail/store/
H A DServiceStore.java27 import com.android.emailcommon.provider.HostAuth;
36 protected final HostAuth mHostAuth;
79 * HostAuth and we return null if there was a service issue
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
H A DHostAuthCompat.java8 import com.android.emailcommon.provider.HostAuth;
12 * This class is explicitly for communicating HostAuth information to different implementations of
13 * IEmailService. We do not want to use the regular HostAuth class because it's used in many ways
31 public HostAuthCompat(HostAuth hostAuth) {
49 public HostAuth toHostAuth() {
50 HostAuth hostAuth = new HostAuth();
/packages/apps/Email/tests/src/com/android/email/mail/
H A DStoreTests.java29 import com.android.emailcommon.provider.HostAuth;
65 HostAuth testAuth = new HostAuth();
78 testAuth = new HostAuth();
90 testAuth = new HostAuth();
/packages/apps/Email/src/com/android/email/mail/
H A DStore.java32 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
90 HostAuth hostAuth = account.getOrCreateHostAuthRecv(context);
111 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context);
127 // Don't cache this unless it's we've got a saved HostAuth
145 return sStores.remove(HostAuth.restoreHostAuthWithId(context, account.mHostAuthKeyRecv));
181 * @return a Bundle containing an error code and a HostAuth (if successful)
H A DSender.java26 import com.android.emailcommon.provider.HostAuth;
76 HostAuth sendAuth = account.getOrCreateHostAuthSend(context);
/packages/apps/Email/src/com/android/email/mail/transport/
H A DMailTransport.java25 import com.android.emailcommon.provider.HostAuth;
58 protected final HostAuth mHostAuth;
64 public MailTransport(Context context, String debugLabel, HostAuth 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/emailcommon/src/com/android/emailcommon/utility/
H A DSSLUtils.java28 import com.android.emailcommon.provider.HostAuth;
51 // All secure factories are the same; all insecure factories are associated with HostAuth's
61 * A trust manager specific to a particular HostAuth. The first time a server certificate is
62 * encountered for the HostAuth, its certificate is saved; subsequent checks determine whether
67 private final HostAuth mHostAuth;
69 // The public key associated with the HostAuth; we'll lazily initialize it
72 SameCertificateCheckingTrustManager(Context context, HostAuth hostAuth) {
76 Cursor c = context.getContentResolver().query(HostAuth.CONTENT_URI,
128 ContentUris.withAppendedId(HostAuth.CONTENT_URI, mHostAuth.mId),
147 HostAuth hostAut
[all...]
H A DEmailClientConnectionManager.java24 import com.android.emailcommon.provider.HostAuth;
64 HostAuth hostAuth) {
92 public synchronized void registerClientCert(Context context, HostAuth hostAuth)
/packages/apps/Email/tests/src/com/android/email/service/
H A DEmailBroadcastProcessorServiceTests.java28 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);
/packages/apps/Email/tests/src/com/android/email/activity/setup/
H A DAccountSetupIncomingTests.java30 import com.android.emailcommon.provider.HostAuth;
197 final HostAuth auth = account.getOrCreateHostAuthRecv(context);
/packages/apps/Email/src/com/android/email/provider/
H A DDBHelper.java52 import com.android.emailcommon.provider.HostAuth;
96 "; delete from " + HostAuth.TABLE_NAME +
98 "; delete from " + HostAuth.TABLE_NAME +
105 "create trigger host_auth_delete after delete on " + HostAuth.TABLE_NAME +
108 " and (select count(*) from " + HostAuth.TABLE_NAME + " where " +
159 // Version 106: Add certificate to HostAuth
268 * (select HostAuth.protocol from HostAuth, Account where
283 + HostAuth.TABLE_NAME + "." + HostAuthColumns.PROTOCOL + " from "
284 + HostAuth
[all...]
/packages/apps/Email/src/com/android/email/mail/internet/
H A DAuthenticationCache.java12 import com.android.emailcommon.provider.HostAuth;
98 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context);
107 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context);
145 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context);
/packages/apps/Email/tests/src/com/android/email/mail/transport/
H A DMockTransport.java21 import com.android.emailcommon.provider.HostAuth;
97 return new MockTransport(context, new HostAuth());
100 public MockTransport(Context context, HostAuth hostAuth) {
291 connectionSecurity & (trustAllCertificates ? HostAuth.FLAG_TRUST_ALL : 0xff);

Completed in 217 milliseconds

123