@Primary @Singleton public class HttpStatusCodeRejectionHandler extends Object implements RejectionHandler
SecurityFilter with the response of correspondent HTTP Status coded.| Constructor and Description |
|---|
HttpStatusCodeRejectionHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Publisher<MutableHttpResponse<?>> |
reject(HttpRequest<?> request,
boolean forbidden) |
public HttpStatusCodeRejectionHandler()
public Publisher<MutableHttpResponse<?>> reject(HttpRequest<?> request, boolean forbidden)
reject in interface RejectionHandlerrequest - HttpRequest being processedforbidden - if true indicates that although the user was authenticated, he did not have the necessary access privileges.