public class CommunoteAuthenticationFailureHandler
extends org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
Constructor and Description |
---|
CommunoteAuthenticationFailureHandler(String authenticationFailureUrl)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
onAuthenticationFailure(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException authenticationException) |
void |
setExceptionMappings(Map<?,?> failureUrlMap)
Borrowed from
ExceptionMappingAuthenticationFailureHandler
. |
void |
setTargetUrlParameter(String targetUrlParameter)
Set the parameter to check and if set expose again when redirecting to one of the failure
URLs
|
public CommunoteAuthenticationFailureHandler(String authenticationFailureUrl)
authenticationFailureUrl
- The failure url.public void onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authenticationException) throws IOException, javax.servlet.ServletException
onAuthenticationFailure
in interface org.springframework.security.web.authentication.AuthenticationFailureHandler
onAuthenticationFailure
in class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
IOException
javax.servlet.ServletException
public void setExceptionMappings(Map<?,?> failureUrlMap)
ExceptionMappingAuthenticationFailureHandler
.
Sets the map of exception types (by name) to URLs.failureUrlMap
- the map keyed by the fully-qualified name of the exception class, with the
corresponding failure URL as the value.IllegalArgumentException
- if the entries are not Strings or the URL is not valid.public void setTargetUrlParameter(String targetUrlParameter)
targetUrlParameter
- name of the parameter that holds the target URL. The parameter name is expected to
consist only of ASCII alpha-numeric characters.Copyright © 2019 Communote team. All rights reserved.