ServerSettings incoming = new ImportedServerSettings(account.incoming); BackendManager backendManager = DI.get(BackendManager.class); String storeUri = backendManager.createStoreUri(incoming); ServerSettings outgoing = new ImportedServerSettings(account.outgoing); String transportUri = backendManager.createTransportUri(outgoing); putString(editor, accountKeyPrefix + AccountPreferenceSerializer.TRANSPORT_URI_KEY, Base64.encode(transportUri));
public ImportedServerSettings(ImportedServer server) { super(ServerTypeConverter.toServerSettingsType(server.type), server.host, convertPort(server.port), convertConnectionSecurity(server.connectionSecurity), server.authenticationType, server.username, server.password, server.clientCertificateAlias); importedServer = server; }