Class ServletAuthenticationCallHandler
- java.lang.Object
-
- io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler
-
- All Implemented Interfaces:
HttpHandler
public class ServletAuthenticationCallHandler extends Object implements HttpHandler
This is the finalHttpHandlerin 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. This handler uses the ServletHttpServletResponse.sendError(int)method to make sure the correct error page is displayed.- Author:
- Darran Lofthouse
-
-
Constructor Summary
Constructors Constructor Description ServletAuthenticationCallHandler(HttpHandler next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(HttpServerExchange exchange)Only allow the request through if successfully authenticated or if authentication is not required.
-
-
-
Constructor Detail
-
ServletAuthenticationCallHandler
public ServletAuthenticationCallHandler(HttpHandler next)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
Only allow the request through if successfully authenticated or if authentication is not required.- Specified by:
handleRequestin interfaceHttpHandler- Throws:
Exception- See Also:
HttpHandler.handleRequest(io.undertow.server.HttpServerExchange)
-
-