protected boolean examineAttributeValues(final Map<String, List<Object>> givenAttributes,
                                             final Map.Entry<String, List<String>> entry) {
        val key = SpringExpressionLanguageValueResolver.getInstance().resolve(entry.getKey());
        val attributeValues = givenAttributes.getOrDefault(key, List.of());
        return entry
            .getValue()
            .stream()
            .anyMatch(pattern -> attributeValues.stream().anyMatch(attrValue -> {
                val attributeValue = attrValue.toString();
                val resolvedPattern = SpringExpressionLanguageValueResolver.getInstance().resolve(pattern);
                LOGGER.trace("Comparing [{}] against pattern [{}]", attributeValue, resolvedPattern);
                return RegexUtils.find(resolvedPattern, attributeValue);
            }));
    }
This is {@link AttributeBasedRegisteredServiceSingleSignOnParticipationPolicy}.

@author Misagh Moayyed
@since 7.0.0
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/AttributeBasedRegisteredServiceSingleSignOnParticipationPolicy.java