public AssertionConsumerService getAssertionConsumerService(final String binding) {
        val acsList = getAssertionConsumerServices()
            .stream()
            .filter(acs -> Objects.nonNull(acs) && Objects.nonNull(acs.getBinding()))
            .filter(acs -> acs.getBinding().equalsIgnoreCase(binding))
            .filter(acs -> StringUtils.isNotBlank(acs.getLocation()) || StringUtils.isNotBlank(acs.getResponseLocation()))
            .collect(Collectors.toList());
        return SAML2MetadataSupport.getDefaultIndexedEndpoint(acsList);
    }
Gets assertion consumer service.

@param binding the binding
@return the assertion consumer service
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/SamlRegisteredServiceMetadataAdaptor.java