Package org.restheart.security.handlers
Class AuthorizersHandler
java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.security.handlers.AuthorizersHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
Executes isAllowed() on all enabled authorizer to check the request
An Authorizer can be either a VETOER or an ALLOWER
A request is allowed when no VETOER denies it and any ALLOWER allows it
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Field Summary
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionAuthorizersHandler(Set<PluginRecord<Authorizer>> authorizers, PipelinedHandler next) Creates a new instance of AuthorizersHandler -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
Constructor Details
-
AuthorizersHandler
Creates a new instance of AuthorizersHandler- Parameters:
authorizers-next-
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-