in src/main/java/org/opensearch/commons/rest/SecureRestClientBuilder.java [130:142]
public SecureRestClientBuilder(HttpHost[] httpHosts, final boolean httpSSLEnabled, final String user, final String passWord) {
if (Strings.isNullOrEmpty(user) || Strings.isNullOrEmpty(passWord)) {
throw new IllegalArgumentException("Invalid user or password");
}
this.httpSSLEnabled = httpSSLEnabled;
this.user = user;
this.passwd = passWord;
this.settings = Settings.EMPTY;
this.configPath = null;
hosts.addAll(Arrays.asList(httpHosts));
}