Class LoginSuccessHandler

  • All Implemented Interfaces:
    org.springframework.security.web.authentication.AuthenticationSuccessHandler

    @Component("loginSuccessHandler")
    public class LoginSuccessHandler
    extends java.lang.Object
    implements org.springframework.security.web.authentication.AuthenticationSuccessHandler
    로그인 성공시 처리
    Version:
    1.0, 2020.11.18 클래스 작성(Yeonhee Kim)
    Author:
    Yeonhee Kim, Wooyoung Lee
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onAuthenticationSuccess​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
      인증이 성공했을 경우 실행되는 로직
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.security.web.authentication.AuthenticationSuccessHandler

        onAuthenticationSuccess
    • Constructor Detail

      • LoginSuccessHandler

        public LoginSuccessHandler()
    • 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
        인증이 성공했을 경우 실행되는 로직
        Specified by:
        onAuthenticationSuccess in interface org.springframework.security.web.authentication.AuthenticationSuccessHandler
        Parameters:
        request - 사용자로부터 들어온 요청
        response - 서버에서 사용자로 가는 응답
        authentication - 인증과 관련한 토큰
        Throws:
        java.io.IOException - 입출력 예외
        javax.servlet.ServletException - 서블릿 예외