class |
BasicAuthSecurityHandler
SecurityHandler for a client to perform http basic auth:
Usage:
ClientConfig config = new ClientConfig();
BasicAuthSecurityHandler basicAuthSecHandler = new BasicAuthSecurityHandler();
basicAuthSecHandler.setUserName("username");
basicAuthSecHandler.setPassword("password");
config.handlers(basicAuthSecurityHandler);
// create the rest client instance
RestClient client = new RestClient(config);
// create the resource instance to interact with Resource
resource = client.resource("https://localhost:8080/path/to/resource");
|