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