Class Summary |
AbstractAuthSecurityHandler |
|
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");
|
ProxyAuthSecurityHandler |
SecurityHandler for a client to perform http proxy auth:
Usage:
ClientConfig config = new ClientConfig();
ProxyAuthSecurityHandler proxyAuthSecHandler = new ProxyAuthSecurityHandler();
proxyAuthSecHandler.setUserName("username");
proxyAuthSecHandler.setPassword("password");
config.handlers(proxyAuthSecurityHandler);
// create the rest client instance
RestClient client = new RestClient(config);
// create the resource instance to interact with Resource
resource = client.resource("http://localhost:8080/path/to/resource");
|