egovframework.rfc3.iam.security.authentication
Class LoginSuccessHandler

java.lang.Object
  extended by egovframework.rfc3.iam.security.authentication.RFC3AbstractAuthenticationTargetUrlRequestHandler
      extended by egovframework.rfc3.iam.security.authentication.LoginSuccessHandler
All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationSuccessHandler

public class LoginSuccessHandler
extends RFC3AbstractAuthenticationTargetUrlRequestHandler
implements org.springframework.security.web.authentication.AuthenticationSuccessHandler


Field Summary
 
Fields inherited from class egovframework.rfc3.iam.security.authentication.RFC3AbstractAuthenticationTargetUrlRequestHandler
DEFAULT_TARGET_PARAMETER
 
Constructor Summary
LoginSuccessHandler()
           
LoginSuccessHandler(java.lang.String defaultTargetUrl)
          Constructor which sets the defaultTargetUrl property of the base class.
 
Method Summary
 void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
          Calls the parent class handle() method to forward or redirect to the target URL, and then calls clearAuthenticationAttributes() to remove any leftover session data.
 
Methods inherited from class egovframework.rfc3.iam.security.authentication.RFC3AbstractAuthenticationTargetUrlRequestHandler
setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseReferer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginSuccessHandler

public LoginSuccessHandler()

LoginSuccessHandler

public LoginSuccessHandler(java.lang.String defaultTargetUrl)
Constructor which sets the defaultTargetUrl property of the base class.

Parameters:
defaultTargetUrl - the URL to which the user should be redirected on successful authentication.
Method Detail

onAuthenticationSuccess

public void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    org.springframework.security.core.Authentication authentication)
                             throws java.io.IOException,
                                    javax.servlet.ServletException
Calls the parent class handle() method to forward or redirect to the target URL, and then calls clearAuthenticationAttributes() to remove any leftover session data.

Specified by:
onAuthenticationSuccess in interface org.springframework.security.web.authentication.AuthenticationSuccessHandler
Throws:
java.io.IOException
javax.servlet.ServletException