public class HttpBasicAuthSecurityHandler extends Object implements ClientHandler
| Constructor and Description |
|---|
HttpBasicAuthSecurityHandler(String username,
String password)
Constructs a fully initialized Security handler.
|
| Modifier and Type | Method and Description |
|---|---|
ClientResponse |
handle(ClientRequest request,
HandlerContext context)
Attempts to authenticate a Consumer via Http Basic.
|
public HttpBasicAuthSecurityHandler(String username, String password)
username - The Consumer username.password - The Consumer password.public ClientResponse handle(ClientRequest request, HandlerContext context) throws Exception
handle in interface ClientHandlerrequest - The Client Resource request.context - The provided handler chain.Exception - Thrown if error handling authentication.Copyright © 2011–2016 UnboundID. All rights reserved.