@Override
    public boolean isRiskyAuthenticationScore(final AuthenticationRiskScore score,
                                              final Authentication authentication,
                                              final RegisteredService service) {
        val threshold = casProperties.getAuthn().getAdaptive().getRisk().getCore().getThreshold();
        LOGGER.trace("Comparing risk score [{}] against threshold [{}]", score, threshold);
        return score.isRiskGreaterThan(threshold) && !isRiskyAuthenticationAcceptable(authentication, score);
    }
This is {@link DefaultAuthenticationRiskEvaluator}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-electrofence/src/main/java/org/apereo/cas/impl/engine/DefaultAuthenticationRiskEvaluator.java