@Override public ServerSettings newPassword(String newPassword) { return new ImapStoreSettings(host, port, connectionSecurity, authenticationType, username, newPassword, clientCertificateAlias, autoDetectNamespace, pathPrefix); } }
@Override public Map<String, String> getExtra() { Map<String, String> extra = new HashMap<>(); extra.put(AUTODETECT_NAMESPACE_KEY, Boolean.valueOf(autoDetectNamespace).toString()); putIfNotNull(extra, PATH_PREFIX_KEY, pathPrefix); return extra; }
private ImapStoreSettings createImapStoreSettings() { return new ImapStoreSettings( "imap.example.org", 143, ConnectionSecurity.NONE, AuthType.PLAIN, "user", "password", null, true, null); }
return new ImapStoreSettings(host, port, connectionSecurity, authenticationType, username, password, clientCertificateAlias, autoDetectNamespace, pathPrefix);