in src/main/java/co/elastic/support/rest/ElasticRestClientInputs.java [103:137]
public List<String> parseInputs(TextIOManager textIOManager, String args[]){
List<String> errors = super.parseInputs(textIOManager, args);
scheme = isSsl ? "https": "http";
errors.addAll(ObjectUtils.defaultIfNull(validateHost(host), emptyList));
errors.addAll(ObjectUtils.defaultIfNull(validateProxyHost(proxyHost), emptyList));
errors.addAll(ObjectUtils.defaultIfNull(textIOManager.validateFile(pkiKeystore), emptyList));
if(StringUtils.isNotEmpty(pkiKeystore)){
errors.addAll(ObjectUtils.defaultIfNull(validateAuthType(pkiLoginAuth), emptyList));
}
errors.addAll(ObjectUtils.defaultIfNull(validatePort(port), emptyList));
errors.addAll(ObjectUtils.defaultIfNull(validatePort(proxyPort), emptyList));
// If we got this far, get the passwords.
if(isPassword){
password = textIOManager.standardPasswordReader
.read(passwordDescription);
}
if(StringUtils.isNotEmpty(pkiKeystore)){
if(isPkiPass){
pkiKeystorePass = textIOManager.standardPasswordReader
.read(pkiKeystorePasswordDescription);
}
}
if(StringUtils.isNotEmpty(proxyUser)){
if(isProxyPass){
proxyPassword = textIOManager.standardPasswordReader
.read(proxyPasswordDescription);
}
}
return errors;
}