(EntityAccount account)
| 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( |
no test coverage detected