MCPcopy Create free account
hub / github.com/M66B/FairEmail / connect

Method connect

app/src/main/java/eu/faircode/email/EmailService.java:399–416  ·  view source on GitHub ↗
(EntityAccount account)

Source from the content-addressed store, hash-verified

397 }
398
399 public void connect(EntityAccount account) throws MessagingException {
400 connect(
401 account.dnssec, account.host, account.port,
402 account.auth_type, account.provider,
403 account.user, account.password,
404 new ServiceAuthenticator.IAuthenticated() {
405 @Override
406 public void onPasswordChanged(Context context, String newPassword) {
407 DB db = DB.getInstance(context);
408 account.password = newPassword;
409 int accounts = db.account().setAccountPassword(account.id, account.password, account.auth_type, account.provider);
410 int identities = db.identity().setIdentityPassword(account.id, account.user, account.password, account.auth_type, account.auth_type, account.provider);
411 EntityLog.log(context, EntityLog.Type.Account, account,
412 "token refreshed=" + accounts + "/" + identities);
413 }
414 },
415 account.certificate_alias, account.fingerprint);
416 }
417
418 public void connect(EntityIdentity identity) throws MessagingException {
419 connect(

Callers 15

monitorAccountMethod · 0.95
onSendMethod · 0.95
onExecuteMethod · 0.45
onExecuteMethod · 0.45
_connectMethod · 0.45
downloadMethod · 0.45
onExecuteMethod · 0.45
onExecuteMethod · 0.45
getLanguagesMethod · 0.45
getSuggestionsMethod · 0.45
modifyDictionaryMethod · 0.45
getWordsMethod · 0.45

Calls 15

getSystemServiceMethod · 0.95
logMethod · 0.95
eMethod · 0.95
iMethod · 0.95
wMethod · 0.95
getProviderByHostMethod · 0.95
vpnActiveMethod · 0.95
getByNameMethod · 0.95
has46Method · 0.95
getAllByNameMethod · 0.95
breadcrumbMethod · 0.95
_connectMethod · 0.95

Tested by

no test coverage detected