use of org.opensaml.saml.metadata.resolver.impl.AbstractMetadataResolver in project cas by apereo.
the class ChainingMetadataResolverCacheLoader method resolveFileSystemBasedMetadataResource.
private void resolveFileSystemBasedMetadataResource(final SamlRegisteredService service, final List<MetadataResolver> metadataResolvers, final AbstractResource metadataResource) throws Exception {
final File metadataFile = metadataResource.getFile();
final AbstractMetadataResolver metadataResolver;
if (metadataFile.isDirectory()) {
metadataResolver = new LocalDynamicMetadataResolver(new FilesystemLoadSaveManager<>(metadataFile, configBean.getParserPool()));
} else {
metadataResolver = new ResourceBackedMetadataResolver(ResourceHelper.of(metadataResource));
}
buildSingleMetadataResolver(metadataResolver, service);
metadataResolvers.add(metadataResolver);
}
Aggregations