Search in sources :

Example 1 with AuthenticationMechanismContext

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);
}
Also used : SecurityContext(io.undertow.security.api.SecurityContext) AuthenticationMechanismContext(io.undertow.security.api.AuthenticationMechanismContext)

Aggregations

AuthenticationMechanismContext (io.undertow.security.api.AuthenticationMechanismContext)1 SecurityContext (io.undertow.security.api.SecurityContext)1