new UsernamePasswordCredentials(
configuration.getTarget().getTargetCredentials().getUsername(),
configuration.getTarget().getTargetCredentials().getPassword()));
CloseableHttpClient httpClient = HttpClientBuilder.create().setDefaultCredentialsProvider(credentialsProvider).build();
HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory(httpClient);
this.xdShell.setSpringXDOperations(new SpringXDTemplate(requestFactory, configuration.getTarget().getTargetUri()));
}
else {
this.xdShell.setSpringXDOperations(new SpringXDTemplate(configuration.getTarget().getTargetUri()));
}
configuration.getTarget().setTargetResultMessage(
String.format("Successfully targeted %s", configuration.getTarget().getTargetUri()));
}
catch (Exception e) {