org.springframework.security.oauth.provider
Class DefaultAuthenticationHandler
java.lang.Object
org.springframework.security.oauth.provider.DefaultAuthenticationHandler
- All Implemented Interfaces:
- OAuthAuthenticationHandler
public class DefaultAuthenticationHandler
- extends Object
- implements OAuthAuthenticationHandler
The default authentication handler.
- Author:
- Ryan Heaton
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAuthenticationHandler
public DefaultAuthenticationHandler()
createAuthentication
public org.springframework.security.core.Authentication createAuthentication(javax.servlet.http.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 © 2013. All rights reserved.