Package org.restheart.security.handlers
Class AuthenticationCallHandler
java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.security.handlers.AuthenticationCallHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
This is the PipelinedHandler version of
io.undertow.security.handlers.AuthenticationCallHandler that is the final
HttpHandler in the security chain, it's purpose is to act as a
barrier at the end of the chain to ensure authenticate is called after the
mechanisms have been associated with the context and the constraint checked.
It also register metrics about failed authentications and blocks requests when
the exchange has the attachment BLOCK_AUTH set to true.- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Field Summary
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) Only allow the request if successfully authenticated or if authentication is not required.Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
Constructor Details
-
AuthenticationCallHandler
-
-
Method Details
-
handleRequest
Only allow the request if successfully authenticated or if authentication is not required.- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-