public static boolean doesEntityDescriptorMatchEntityAttribute(final EntityDescriptor entityDescriptor,
                                                                   final List<MetadataEntityAttributeQuery> candidates) {
        val predicate = buildEntityAttributePredicate(candidates);
        return predicate.test(entityDescriptor);
    }
Does entity descriptor match entity attribute.

@param entityDescriptor the entity descriptor
@param candidates       the candidates
@return true/false
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/SamlIdPUtils.java