org.springframework.security.web.authentication
Interface AuthenticationSuccessHandler

All Known Implementing Classes:
SavedRequestAwareAuthenticationSuccessHandler, SimpleUrlAuthenticationSuccessHandler

public interface AuthenticationSuccessHandler

Strategy used to handle a successful user authentication.

Implementations can do whatever they want but typical behaviour would be to control the navigation to the subsequent destination (using a redirect or a forward). For example, after a user has logged in by submitting a login form, the application needs to decide where they should be redirected to afterwards (see AbstractAuthenticationProcessingFilter and subclasses). Other logic may also be included if required.

Since:
3.0
Version:
$Id: AuthenticationSuccessHandler.java 3664 2009-05-12 05:37:11Z ltaylor $
Author:
Luke Taylor
See Also:

Method Summary
 void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication)
          Called when a user has been successfully authenticated.
 

Method Detail

onAuthenticationSuccess

void onAuthenticationSuccess(HttpServletRequest request,
                             HttpServletResponse response,
                             Authentication authentication)
                             throws IOException,
                                    ServletException
Called when a user has been successfully authenticated.

Parameters:
request - the request which caused the successful authentication
response - the response
authentication - the Authentication object which was created during the authentication process.
Throws:
IOException
ServletException


Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.