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

java.lang.Object
  extended by org.apache.shindig.social.core.oauth2.OAuth2AuthenticationHandler
All Implemented Interfaces:
AuthenticationHandler

public class OAuth2AuthenticationHandler
extends java.lang.Object
implements AuthenticationHandler

Authentication handler for OAuth 2.0. Authenticates requests for resources using one of the OAuth 2.0 flows.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.shindig.auth.AuthenticationHandler
AuthenticationHandler.InvalidAuthenticationException
 
Field Summary
 
Fields inherited from interface org.apache.shindig.auth.AuthenticationHandler
STASHED_BODY
 
Constructor Summary
OAuth2AuthenticationHandler(OAuth2Service store)
           
 
Method Summary
 java.lang.String getName()
           
 SecurityToken getSecurityTokenFromRequest(javax.servlet.http.HttpServletRequest request)
          Only denies authentication when an invalid bearer token is received.
 java.lang.String getWWWAuthenticateHeader(java.lang.String realm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuth2AuthenticationHandler

@Inject
public OAuth2AuthenticationHandler(OAuth2Service store)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface AuthenticationHandler

getSecurityTokenFromRequest

public SecurityToken getSecurityTokenFromRequest(javax.servlet.http.HttpServletRequest request)
                                          throws AuthenticationHandler.InvalidAuthenticationException
Only denies authentication when an invalid bearer token is received. Unauthenticated requests can pass through to other AuthenticationHandlers.

Specified by:
getSecurityTokenFromRequest in interface AuthenticationHandler
Throws:
AuthenticationHandler.InvalidAuthenticationException

getWWWAuthenticateHeader

public java.lang.String getWWWAuthenticateHeader(java.lang.String realm)
Specified by:
getWWWAuthenticateHeader in interface AuthenticationHandler


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