use of com.consol.citrus.http.client.BasicAuthClientHttpRequestFactory in project citrus-samples by christophd.
the class EndpointConfig method basicAuthRequestFactoryBean.
@Bean
public BasicAuthClientHttpRequestFactory basicAuthRequestFactoryBean() {
BasicAuthClientHttpRequestFactory requestFactory = new BasicAuthClientHttpRequestFactory();
AuthScope authScope = new AuthScope("localhost", port, "", "basic");
requestFactory.setAuthScope(authScope);
UsernamePasswordCredentials credentials = new UsernamePasswordCredentials("citrus", "secr3t");
requestFactory.setCredentials(credentials);
return requestFactory;
}
Aggregations