Package org.restheart.security.handlers
Class SecurityInitialHandler
java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.security.handlers.SecurityInitialHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
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]>
-
Field Summary
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE
-
Constructor Summary
ConstructorDescriptionSecurityInitialHandler
(io.undertow.security.api.AuthenticationMode authenticationMode, io.undertow.security.idm.IdentityManager identityManager, String programaticMechName, PipelinedHandler next) SecurityInitialHandler
(io.undertow.security.api.AuthenticationMode authenticationMode, String programaticMechName, io.undertow.security.impl.SecurityContextFactoryImpl contextFactory, PipelinedHandler next) SecurityInitialHandler
(io.undertow.security.api.AuthenticationMode authenticationMode, PipelinedHandler next) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleRequest
(io.undertow.server.HttpServerExchange exchange) Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
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
- Specified by:
handleRequest
in interfaceio.undertow.server.HttpHandler
- Specified by:
handleRequest
in classPipelinedHandler
- Throws:
Exception
-