org.springframework.security.oauth.provider
Interface OAuthAuthenticationHandler

All Known Implementing Classes:
DefaultAuthenticationHandler

public interface OAuthAuthenticationHandler

Callback interface for handing authentication details that are used when an authenticated request for a protected resource is received.

Author:
Ryan Heaton

Method Summary
 org.springframework.security.core.Authentication createAuthentication(HttpServletRequest request, ConsumerAuthentication authentication, OAuthAccessProviderToken authToken)
          Create the authentication object for an authenticated OAuth request.
 

Method Detail

createAuthentication

org.springframework.security.core.Authentication createAuthentication(HttpServletRequest request,
                                                                      ConsumerAuthentication authentication,
                                                                      OAuthAccessProviderToken authToken)
Create the authentication object for an authenticated OAuth request.

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 new authentication object. For example, the user authentication if the request is made on behalf of a user.


Copyright © 2012. All Rights Reserved.