org.bbqjs.spring.security.web.authentication
Class StatusCodeBasedAuthenticationFailureHandler
java.lang.Object
org.bbqjs.spring.security.web.authentication.StatusCodeBasedAuthenticationFailureHandler
- All Implemented Interfaces:
- org.springframework.security.web.authentication.AuthenticationFailureHandler
public class StatusCodeBasedAuthenticationFailureHandler
- extends Object
- implements org.springframework.security.web.authentication.AuthenticationFailureHandler
Sends an HTTP status code when authentication fails - defaults to 401 UNAUTHORIZED
Method Summary |
void |
onAuthenticationFailure(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException exception)
|
void |
setStatus(int status)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatusCodeBasedAuthenticationFailureHandler
public StatusCodeBasedAuthenticationFailureHandler()
onAuthenticationFailure
public void onAuthenticationFailure(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException exception)
throws IOException,
javax.servlet.ServletException
- Specified by:
onAuthenticationFailure
in interface org.springframework.security.web.authentication.AuthenticationFailureHandler
- Throws:
IOException
javax.servlet.ServletException
setStatus
public void setStatus(int status)
Copyright © 2012. All Rights Reserved.