use of io.undertow.security.api.AuthenticationMechanismContext in project undertow by undertow-io.
the class AuthenticationMechanismsHandler method handleRequest.
@Override
public void handleRequest(final HttpServerExchange exchange) throws Exception {
final SecurityContext sc = exchange.getSecurityContext();
if (sc != null && sc instanceof AuthenticationMechanismContext) {
AuthenticationMechanismContext amc = (AuthenticationMechanismContext) sc;
for (int i = 0; i < authenticationMechanisms.length; ++i) {
amc.addAuthenticationMechanism(authenticationMechanisms[i]);
}
}
next.handleRequest(exchange);
}
Aggregations