com.unboundid.scim.sdk
Class OAuthSecurityHandler

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

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

This class provides OAuth Authentication handling.


Constructor Summary
OAuthSecurityHandler(OAuthToken token)
          Constructs a fully initialized OAuthSecurityHandler 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 OAuth tokens.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthSecurityHandler

public OAuthSecurityHandler(OAuthToken token)
Constructs a fully initialized OAuthSecurityHandler handler.

Parameters:
token - Fully constructed OAuth Token
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 OAuth tokens.

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.