@Override
    public boolean shouldActivate(final RegisteredServiceAttributeReleasePolicyContext context) {
        val stream = requiredAttributes.entrySet().stream();
        val attributes = CoreAuthenticationUtils.mergeAttributes(new HashMap<>(context.getPrincipal().getAttributes()), context.getReleasingAttributes());
        LOGGER.debug("Activation criteria will examine attributes [{}]", attributes);
        if (reverseMatch) {
            return stream.noneMatch(entry -> verifyRequiredAttribute(entry, attributes));
        }
        return operator == LogicalOperatorTypes.AND
            ? stream.allMatch(entry -> verifyRequiredAttribute(entry, attributes))
            : stream.anyMatch(entry -> verifyRequiredAttribute(entry, attributes));
    }
This is {@link AttributeBasedRegisteredServiceAttributeReleaseActivationCriteria}.

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