@groovy.util.logging.Slf4j @groovy.transform.CompileStatic class RestAuthenticationFailureHandler extends java.lang.Object implements AuthenticationFailureHandler
Sets the configured status code.
| Type | Name and description |
|---|---|
java.lang.Integer |
statusCodeConfigurable status code, by default: conf.rest.login.failureStatusCode? |
| Constructor and description |
|---|
RestAuthenticationFailureHandler() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception)Called when an authentication attempt fails. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Configurable status code, by default: conf.rest.login.failureStatusCode?:HttpServletResponse.SC_FORBIDDEN
Called when an authentication attempt fails.
request - the request during which the authentication attempt occurred.response - the response.exception - the exception which was thrown to reject the authentication request.Groovy Documentation