Class AuthenticationExceptionHandler
java.lang.Object
io.micronaut.security.authentication.AuthenticationExceptionHandler
- All Implemented Interfaces:
io.micronaut.http.server.exceptions.ExceptionHandler<AuthenticationException,
io.micronaut.http.MutableHttpResponse<?>>
@Requires(classes=io.micronaut.http.server.exceptions.ExceptionHandler.class)
@Singleton
@Primary
@Produces
public class AuthenticationExceptionHandler
extends Object
implements io.micronaut.http.server.exceptions.ExceptionHandler<AuthenticationException,io.micronaut.http.MutableHttpResponse<?>>
Handles the server response when an
AuthenticationException
is thrown.- Since:
- 1.0
- Author:
- James Kleeh
-
Constructor Summary
ConstructorDescriptionAuthenticationExceptionHandler
(io.micronaut.http.server.exceptions.response.ErrorResponseProcessor<?> errorResponseProcessor) -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.http.MutableHttpResponse<?>
handle
(io.micronaut.http.HttpRequest request, AuthenticationException exception)
-
Constructor Details
-
AuthenticationExceptionHandler
public AuthenticationExceptionHandler(io.micronaut.http.server.exceptions.response.ErrorResponseProcessor<?> errorResponseProcessor)
-
-
Method Details
-
handle
public io.micronaut.http.MutableHttpResponse<?> handle(io.micronaut.http.HttpRequest request, AuthenticationException exception) - Specified by:
handle
in interfaceio.micronaut.http.server.exceptions.ExceptionHandler<AuthenticationException,
io.micronaut.http.MutableHttpResponse<?>>
-