org.apache.shindig.social.core.oauth2
Class OAuth2TokenHandler

java.lang.Object
  extended by org.apache.shindig.social.core.oauth2.OAuth2TokenHandler

public class OAuth2TokenHandler
extends java.lang.Object

Handles operations to the OAuth 2.0 token end point. TODO (Eric): generate refreshToken & associate with accessToken


Constructor Summary
OAuth2TokenHandler(OAuth2Service service)
          Constructs the token handler with the OAuth2Service.
 
Method Summary
 OAuth2NormalizedResponse handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handles an OAuth 2.0 request to the token endpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuth2TokenHandler

public OAuth2TokenHandler(OAuth2Service service)
Constructs the token handler with the OAuth2Service.

Parameters:
service - is the service that will support this handler
Method Detail

handle

public OAuth2NormalizedResponse handle(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response)
                                throws javax.servlet.ServletException,
                                       java.io.IOException
Handles an OAuth 2.0 request to the token endpoint.

Parameters:
request - is the servlet request object
response - is the servlet response object
Returns:
OAuth2NormalizedResponse encapsulates the request's response
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.