/** * Creates an "empty" {@code ServerSettings} object. * * Everything but {@link ServerSettings#type} is unused. * * @param type * see {@link ServerSettings#type} */ public ServerSettings(String type) { this.type = checkType(type); host = null; port = -1; connectionSecurity = ConnectionSecurity.NONE; authenticationType = null; username = null; password = null; clientCertificateAlias = null; extra = null; }
ConnectionSecurity connectionSecurity, AuthType authenticationType, String username, String password, String clientCertificateAlias) { this.type = checkType(type); this.host = host; this.port = port;
ConnectionSecurity connectionSecurity, AuthType authenticationType, String username, String password, String clientCertificateAlias, Map<String, String> extra) { this.type = checkType(type); this.host = host; this.port = port;