Class AuthenticationExceptionHandler
- java.lang.Object
-
- io.micronaut.security.authentication.AuthenticationExceptionHandler
-
- All Implemented Interfaces:
io.micronaut.http.server.exceptions.ExceptionHandler<AuthenticationException,io.micronaut.http.HttpResponse>
@Singleton @Primary @Produces public class AuthenticationExceptionHandler extends java.lang.Object implements io.micronaut.http.server.exceptions.ExceptionHandler<AuthenticationException,io.micronaut.http.HttpResponse>
Handles the server response when anAuthenticationException
is thrown.- Since:
- 1.0
- Author:
- James Kleeh
-
-
Constructor Summary
Constructors Constructor Description AuthenticationExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.micronaut.http.HttpResponse
handle(io.micronaut.http.HttpRequest request, AuthenticationException exception)
-
-
-
Method Detail
-
handle
public io.micronaut.http.HttpResponse handle(io.micronaut.http.HttpRequest request, AuthenticationException exception)
- Specified by:
handle
in interfaceio.micronaut.http.server.exceptions.ExceptionHandler<AuthenticationException,io.micronaut.http.HttpResponse>
-
-