Polish ForwardAuthenticationFailureHandler
* Whitespace cleanup * Add @since Issue gh-3727
This commit is contained in:
parent
7341da9320
commit
e61bc7e93b
|
@ -31,7 +31,7 @@ import java.io.IOException;
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author Shazin Sadakath
|
* @author Shazin Sadakath
|
||||||
*
|
* @since 4.1
|
||||||
*/
|
*/
|
||||||
public class ForwardAuthenticationFailureHandler implements AuthenticationFailureHandler {
|
public class ForwardAuthenticationFailureHandler implements AuthenticationFailureHandler {
|
||||||
|
|
||||||
|
@ -46,7 +46,6 @@ public class ForwardAuthenticationFailureHandler implements AuthenticationFailur
|
||||||
this.forwardUrl = forwardUrl;
|
this.forwardUrl = forwardUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException, ServletException {
|
public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException, ServletException {
|
||||||
request.setAttribute(WebAttributes.AUTHENTICATION_EXCEPTION, exception);
|
request.setAttribute(WebAttributes.AUTHENTICATION_EXCEPTION, exception);
|
||||||
request.getRequestDispatcher(forwardUrl).forward(request, response);
|
request.getRequestDispatcher(forwardUrl).forward(request, response);
|
||||||
|
|
|
@ -30,7 +30,7 @@ import static org.mockito.Mockito.mock;
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author Shazin Sadakath
|
* @author Shazin Sadakath
|
||||||
*
|
* @since4.1
|
||||||
*/
|
*/
|
||||||
public class ForwardAuthenticationFailureHandlerTests {
|
public class ForwardAuthenticationFailureHandlerTests {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue