Interface AuthenticationSuccessHandler
- 
- All Known Implementing Classes:
- ForwardAuthenticationSuccessHandler,- SavedRequestAwareAuthenticationSuccessHandler,- SimpleUrlAuthenticationSuccessHandler
 
 public interface AuthenticationSuccessHandlerStrategy 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 AbstractAuthenticationProcessingFilterand subclasses). Other logic may also be included if required.- Since:
- 3.0
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidonAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain, Authentication authentication)Called when a user has been successfully authenticated.voidonAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Authentication authentication)Called when a user has been successfully authenticated.
 
- 
- 
- 
Method Detail- 
onAuthenticationSuccessdefault void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain, Authentication authentication) throws java.io.IOException, javax.servlet.ServletExceptionCalled when a user has been successfully authenticated.- Parameters:
- request- the request which caused the successful authentication
- response- the response
- chain- the- FilterChainwhich can be used to proceed other filters in the chain
- authentication- the Authentication object which was created during the authentication process.
- Throws:
- java.io.IOException
- javax.servlet.ServletException
- Since:
- 5.2.0
 
 - 
onAuthenticationSuccessvoid onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Authentication authentication) throws java.io.IOException, javax.servlet.ServletExceptionCalled 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:
- java.io.IOException
- javax.servlet.ServletException
 
 
- 
 
-