Package io.micronaut.security.handlers
Interface RejectionHandler
-
- All Known Implementing Classes:
HttpStatusCodeRejectionHandler,RedirectRejectionHandler,SessionSecurityfilterRejectionHandler
public interface RejectionHandlerDescribes the bean responsible of rejecting a route flagged bySecurityFilter.- Since:
- 1.0
- Author:
- Sergio del Amo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>>reject(io.micronaut.http.HttpRequest<?> request, boolean forbidden)
-
-
-
Method Detail
-
reject
org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> reject(io.micronaut.http.HttpRequest<?> request, boolean forbidden)- Parameters:
request-HttpRequestbeing processedforbidden- if true indicates that although the user was authenticated he did not had the necessary access privileges.- Returns:
- Return a HTTP Response
-
-