default Set<AuthenticationHandler> resolve(final Set<AuthenticationHandler> candidateHandlers,
                                               final AuthenticationTransaction transaction) throws Throwable {
        val handlers = candidateHandlers
            .stream()
            .filter(handler -> handler.getState() == AuthenticationHandlerStates.ACTIVE)
            .collect(Collectors.toCollection(LinkedHashSet::new));
        if (LOGGER.isDebugEnabled()) {
            val handlerNames = handlers.stream().map(AuthenticationHandler::getName).collect(Collectors.joining(","));
            LOGGER.debug("Default authentication handlers used for this transaction are [{}]", handlerNames);
        }
        return handlers;
    }
Resolve set of authentication handlers.

@param candidateHandlers the candidate handlers
@param transaction       the transaction
@return the set
@throws Throwable the throwable
api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/AuthenticationHandlerResolver.java