@Override
    public boolean supports(final AuthnResponse response) {
        if (response == null) {
            LOGGER.debug("Unable to support authentication response given none is provided");
            return false;
        }

        if (!isAuthenticationResponseWithResult(response)) {
            LOGGER.debug("Unable to support authentication response [{}] with a negative/false result", response);
            return false;
        }

        val currentCodes = getAuthenticationResponseResultCodes(response);
        val result = this.resultCodes.stream().filter(currentCodes::contains).findAny();

        if (result.isPresent()) {
            LOGGER.debug("Unable to support authentication response [{}] with a blocked authentication result code [{}]", response, result.get());
            return false;
        }
        LOGGER.debug("Authentication response [{}] is supported by password policy handling strategy [{}]", response, getClass().getSimpleName());
        return true;
    }
This is {@link RejectResultCodePasswordPolicyHandlingStrategy}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/support/password/RejectResultCodePasswordPolicyHandlingStrategy.java