public class HttpBasicAuthSecurityHandler extends Object implements org.apache.wink.client.handlers.ClientHandler
| Constructor and Description |
|---|
HttpBasicAuthSecurityHandler(String username,
String password)
Constructs a fully initialized Security handler.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.wink.client.ClientResponse |
handle(org.apache.wink.client.ClientRequest request,
org.apache.wink.client.handlers.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 org.apache.wink.client.ClientResponse handle(org.apache.wink.client.ClientRequest request, org.apache.wink.client.handlers.HandlerContext context) throws Exception
handle in interface org.apache.wink.client.handlers.ClientHandlerrequest - The Client Resource request.context - The provided handler chain.Exception - Thrown if error handling authentication.Copyright © 2011-2013 UnboundID. All Rights Reserved.