Search in sources :

Example 1 with RequiredValidUntilFilter

use of org.opensaml.saml.metadata.resolver.filter.impl.RequiredValidUntilFilter in project cas by apereo.

the class ChainingMetadataResolverCacheLoader method buildRequiredValidUntilFilterIfNeeded.

/**
     * Build required valid until filter if needed. See {@link RequiredValidUntilFilter}.
     *
     * @param service            the service
     * @param metadataFilterList the metadata filter list
     */
protected void buildRequiredValidUntilFilterIfNeeded(final SamlRegisteredService service, final List<MetadataFilter> metadataFilterList) {
    if (service.getMetadataMaxValidity() > 0) {
        final RequiredValidUntilFilter requiredValidUntilFilter = new RequiredValidUntilFilter(service.getMetadataMaxValidity());
        metadataFilterList.add(requiredValidUntilFilter);
        LOGGER.debug("Added metadata RequiredValidUntilFilter with max validity of [{}]", service.getMetadataMaxValidity());
    } else {
        LOGGER.debug("No metadata maximum validity criteria is defined for [{}], so RequiredValidUntilFilter will not be invoked", service.getMetadataLocation());
    }
}
Also used : RequiredValidUntilFilter(org.opensaml.saml.metadata.resolver.filter.impl.RequiredValidUntilFilter)

Aggregations

RequiredValidUntilFilter (org.opensaml.saml.metadata.resolver.filter.impl.RequiredValidUntilFilter)1