egovframework.rfc3.iam.security.authentication
Class LoginSuccessHandler
java.lang.Object
egovframework.rfc3.iam.security.authentication.RFC3AbstractAuthenticationTargetUrlRequestHandler
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
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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