Package org.restheart.security.handlers
Class AuthenticationConstraintHandler
java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.security.handlers.AuthenticationConstraintHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
- Author:
- Andrea Di Cesare <[email protected]>
-
Field Summary
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationConstraintHandler
(PipelinedHandler next, Set<PluginRecord<Authorizer>> authorizers) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleRequest
(io.undertow.server.HttpServerExchange exchange) protected boolean
isAuthenticationRequired
(io.undertow.server.HttpServerExchange exchange) Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
Constructor Details
-
AuthenticationConstraintHandler
public AuthenticationConstraintHandler(PipelinedHandler next, Set<PluginRecord<Authorizer>> authorizers) - Parameters:
next
-authorizers
-
-
-
Method Details
-
isAuthenticationRequired
protected boolean isAuthenticationRequired(io.undertow.server.HttpServerExchange exchange) - Parameters:
exchange
-- Returns:
- true if all enabled authorizers of type ALLOWER require authentication
-
handleRequest
- Specified by:
handleRequest
in interfaceio.undertow.server.HttpHandler
- Specified by:
handleRequest
in classPipelinedHandler
- Throws:
Exception
-