code: protected void buildMetadataFilters(final SamlRegisteredService service, final AbstractMetadataResolver metadataProvider,
                                          final List<MetadataFilter> metadataFilterList) throws Exception {
          buildRequiredValidUntilFilterIfNeeded(service, metadataFilterList);
          buildSignatureValidationFilterIfNeeded(service, metadataFilterList);
  
          buildEntityRoleFilterIfNeeded(service, metadataFilterList);
          buildPredicateFilterIfNeeded(service, metadataFilterList);
  
          if (!metadataFilterList.isEmpty()) {
              addMetadataFiltersToMetadataResolver(metadataProvider, metadataFilterList);
          }
      }
docs: Build metadata filters.
  
  @param service            the service
  @param metadataProvider   the metadata provider
  @param metadataFilterList the metadata filter list
  @throws Exception the exception