Top Description Fields Constructors Methods
io.undertow.servlet.handlers.security

public Class ServletAuthenticationCallHandler

extends Object
implements HttpHandler
Class Inheritance
All Implemented Interfaces
io.undertow.server.HttpHandler
Imports
io.undertow.security.api.SecurityContext, io.undertow.server.HttpHandler, .HttpServerExchange, io.undertow.servlet.handlers.ServletRequestContext, io.undertow.util.StatusCodes

This is the final io.undertow.server.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. This handler uses the Servlet jakarta.servlet.http.HttpServletResponse#sendError(int) method to make sure the correct error page is displayed.
Author
Darran Lofthouse

Field Summary

Modifier and TypeField and Description
private final HttpHandler

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
handleRequest(final HttpServerExchange
the HTTP request/response exchange
exchange
)

Implements io.undertow.server.HttpHandler.handleRequest.

Only allow the request through if successfully authenticated or if authentication is not required.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nextback to summary
private final HttpHandler next

Constructor Detail

ServletAuthenticationCallHandlerback to summary
public ServletAuthenticationCallHandler(final HttpHandler next)

Method Detail

handleRequestback to summary
public void handleRequest(final HttpServerExchange exchange) throws Exception

Implements io.undertow.server.HttpHandler.handleRequest.

Only allow the request through if successfully authenticated or if authentication is not required.

Parameters
exchange:HttpServerExchange

Doc from io.undertow.server.HttpHandler.handleRequest.

the HTTP request/response exchange

Annotations
@Override
See Also
io.undertow.server.HttpHandler#handleRequest(io.undertow.server.HttpServerExchange)