java.lang.Object | ||
↳ | org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler | |
↳ | org.springframework.security.web.authentication.ExceptionMappingAuthenticationFailureHandler |
Uses the internal map of exceptions types to URLs to determine the destination on authentication failure. The keys are the full exception class names.
If a match isn't found, falls back to the behaviour of the parent class,
SimpleUrlAuthenticationFailureHandler
.
The map of exception names to URLs should be injected by setting the exceptionMappings property.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Performs the redirect or forward to the
defaultFailureUrl if set, otherwise returns a 401 error code. | |||||||||||
Sets the map of exception types (by name) to URLs.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.security.web.authentication.AuthenticationFailureHandler
|
Performs the redirect or forward to the defaultFailureUrl
if set, otherwise returns a 401 error code.
If redirecting or forwarding, saveException
will be called to cache the exception for use in
the target view.
request | the request during which the authentication attempt occurred. |
---|---|
response | the response. |
exception | the exception which was thrown to reject the authentication request. |
IOException | |
---|---|
ServletException |
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. |
---|