@Override
    public boolean shouldActivate(final RegisteredServiceAccessStrategyRequest request) {
        val stream = requiredAttributes.entrySet().stream();
        return operator == LogicalOperatorTypes.AND
            ? stream.allMatch(entry -> verifyRequiredAttribute(entry, request))
            : stream.anyMatch(entry -> verifyRequiredAttribute(entry, request));
    }
This is {@link AttributeBasedRegisteredServiceAccessStrategyActivationCriteria}.

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