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 <andrea@softinstigate.com>
-
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 TypeMethodDescriptionvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) protected booleanisAuthenticationRequired(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:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Throws:
Exception
-