org.springframework.security.oauth.provider
Class DefaultAuthenticationHandler

java.lang.Object
  extended by org.springframework.security.oauth.provider.DefaultAuthenticationHandler
All Implemented Interfaces:
OAuthAuthenticationHandler

public class DefaultAuthenticationHandler
extends Object
implements OAuthAuthenticationHandler

The default authentication handler.

Author:
Ryan Heaton

Constructor Summary
DefaultAuthenticationHandler()
           
 
Method Summary
 org.springframework.security.core.Authentication createAuthentication(HttpServletRequest request, ConsumerAuthentication authentication, OAuthAccessProviderToken authToken)
          Default implementation returns the user authentication associated with the auth token, if the token is provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAuthenticationHandler

public DefaultAuthenticationHandler()
Method Detail

createAuthentication

public org.springframework.security.core.Authentication createAuthentication(HttpServletRequest request,
                                                                             ConsumerAuthentication authentication,
                                                                             OAuthAccessProviderToken authToken)
Default implementation returns the user authentication associated with the auth token, if the token is provided. Otherwise, the consumer authentication is returned.

Specified by:
createAuthentication in interface OAuthAuthenticationHandler
Parameters:
request - The request that was successfully authenticated.
authentication - The consumer authentication (details about how the request was authenticated).
authToken - The OAuth token associated with the authentication. This token MAY be null if no authenticated token was needed to successfully authenticate the request (for example, in the case of 2-legged OAuth).
Returns:
The authentication.


Copyright © 2012. All Rights Reserved.