Class SecurityInitialHandler

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

public class SecurityInitialHandler extends PipelinedHandler
This is the PipelinedHandler version of io.undertow.security.handlers.SecurityInitialHandler the security handler responsible for attaching the SecurityContext to the current HttpServerExchange. This handler is called early in the processing of the incoming request, subsequently supported authentication mechanisms will be added to the context, a decision will then be made if authentication is required or optional and the associated mechanisms will be called.
Author:
Andrea Di Cesare <[email protected]>
  • Constructor Details

    • SecurityInitialHandler

      public SecurityInitialHandler(io.undertow.security.api.AuthenticationMode authenticationMode, String programaticMechName, io.undertow.security.impl.SecurityContextFactoryImpl contextFactory, PipelinedHandler next)
    • SecurityInitialHandler

      public SecurityInitialHandler(io.undertow.security.api.AuthenticationMode authenticationMode, io.undertow.security.idm.IdentityManager identityManager, String programaticMechName, PipelinedHandler next)
    • SecurityInitialHandler

      public SecurityInitialHandler(io.undertow.security.api.AuthenticationMode authenticationMode, PipelinedHandler next)
  • Method Details

    • 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