com.unboundid.scim.sdk
Class HttpBasicAuthSecurityHandler

java.lang.Object
  extended by com.unboundid.scim.sdk.HttpBasicAuthSecurityHandler
All Implemented Interfaces:
org.apache.wink.client.handlers.ClientHandler

public class HttpBasicAuthSecurityHandler
extends Object
implements org.apache.wink.client.handlers.ClientHandler

This class provides HTTP Basic Authentication handling.


Constructor Summary
HttpBasicAuthSecurityHandler(String username, String password)
          Constructs a fully initialized Security handler.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpBasicAuthSecurityHandler

public HttpBasicAuthSecurityHandler(String username,
                                    String password)
Constructs a fully initialized Security handler.

Parameters:
username - The Consumer username.
password - The Consumer password.
Method Detail

handle

public org.apache.wink.client.ClientResponse handle(org.apache.wink.client.ClientRequest request,
                                                    org.apache.wink.client.handlers.HandlerContext context)
                                             throws Exception
Attempts to authenticate a Consumer via Http Basic.

Specified by:
handle in interface org.apache.wink.client.handlers.ClientHandler
Parameters:
request - The Client Resource request.
context - The provided handler chain.
Returns:
Client Response that may indicate success or failure.
Throws:
Exception - Thrown if error handling authentication.


Copyright © 2011-2012 UnboundID. All Rights Reserved.