Package kr.com.inspect.handler
Class LoginFailHandler
- java.lang.Object
-
- kr.com.inspect.handler.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
-
-
Constructor Summary
Constructors Constructor Description LoginFailHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)인증이 실패했을 경우 실행되는 로직
-
-
-
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:
onAuthenticationFailurein interfaceorg.springframework.security.web.authentication.AuthenticationFailureHandler- Parameters:
request- 사용자로부터 들어온 요청response- 서버에서 사용자로 가는 응답exception- 인증이 실패한 경우 던져지는 예외- Throws:
java.io.IOException- 입출력 예외javax.servlet.ServletException- 서블릿 예외
-
-