Class LoginFailHandler

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

    @Component("loginFailHandler")
    public class LoginFailHandler
    extends java.lang.Object
    implements org.springframework.security.web.authentication.AuthenticationFailureHandler
    로그인 실패시 처리
    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 onAuthenticationFailure​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
      인증이 실패했을 경우 실행되는 로직
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LoginFailHandler

        public LoginFailHandler()
    • Method Detail

      • onAuthenticationFailure

        public void onAuthenticationFailure​(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response,
                                            org.springframework.security.core.AuthenticationException exception)
                                     throws java.io.IOException,
                                            javax.servlet.ServletException
        인증이 실패했을 경우 실행되는 로직
        Specified by:
        onAuthenticationFailure in interface org.springframework.security.web.authentication.AuthenticationFailureHandler
        Parameters:
        request - 사용자로부터 들어온 요청
        response - 서버에서 사용자로 가는 응답
        exception - 인증이 실패한 경우 던져지는 예외
        Throws:
        java.io.IOException - 입출력 예외
        javax.servlet.ServletException - 서블릿 예외