/**
* @see io.undertow.server.HttpHandler#handleRequest(io.undertow.server.HttpServerExchange)
*/
@Override
public void handleRequest(HttpServerExchange exchange) throws Exception {
SecurityContextImpl newContext = new SecurityContextImpl(exchange, authenticationMode, identityManager);
if (programaticMechName != null) {
newContext.setProgramaticMechName(programaticMechName);
}
exchange.putAttachment(SecurityContext.ATTACHMENT_KEY, newContext);
HttpHandlers.executeHandler(next, exchange);
}