public interface AuthenticationSuccessHandler
 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.
| Modifier and Type | Method and Description | 
|---|---|
void | 
onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       org.springframework.security.core.Authentication authentication)
Called when a user has been successfully authenticated. 
 | 
default void | 
onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       javax.servlet.FilterChain chain,
                       org.springframework.security.core.Authentication authentication)
Called when a user has been successfully authenticated. 
 | 
default void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response,
                                     javax.servlet.FilterChain chain,
                                     org.springframework.security.core.Authentication authentication)
                              throws java.io.IOException,
                                     javax.servlet.ServletException
request - the request which caused the successful authenticationresponse - the responsechain - the FilterChain which can be used to proceed other filters in
 the chainauthentication - the Authentication object which was created during
 the authentication process.java.io.IOExceptionjavax.servlet.ServletExceptionvoid onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response,
                             org.springframework.security.core.Authentication authentication)
                      throws java.io.IOException,
                             javax.servlet.ServletException
request - the request which caused the successful authenticationresponse - the responseauthentication - the Authentication object which was created during
 the authentication process.java.io.IOExceptionjavax.servlet.ServletException