Class AuthenticationConstraintHandler

java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.security.handlers.AuthenticationConstraintHandler
All Implemented Interfaces:
io.undertow.server.HttpHandler

public class AuthenticationConstraintHandler extends PipelinedHandler
Author:
Andrea Di Cesare <[email protected]>
  • Constructor Details

  • 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

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Specified by:
      handleRequest in class PipelinedHandler
      Throws:
      Exception