public class OAuthSecurityHandler extends Object implements org.apache.wink.client.handlers.ClientHandler
| Constructor and Description |
|---|
OAuthSecurityHandler(OAuthToken token)
Constructs a fully initialized OAuthSecurityHandler 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 OAuth tokens.
|
public OAuthSecurityHandler(OAuthToken token)
token - Fully constructed OAuth Tokenpublic 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.