use of org.apereo.cas.support.saml.mdui.MetadataResolverAdapter in project cas by apereo.
the class SamlMetadataUIConfiguration method configureAdapter.
private MetadataResolverAdapter configureAdapter(final AbstractMetadataResolverAdapter adapter) {
final Map<Resource, MetadataFilterChain> resources = new HashMap<>();
final MetadataFilterChain chain = new MetadataFilterChain();
casProperties.getSamlMetadataUi().getResources().forEach(Unchecked.consumer(r -> configureResource(resources, chain, r)));
adapter.setRequireValidMetadata(casProperties.getSamlMetadataUi().isRequireValidMetadata());
adapter.setMetadataResources(resources);
adapter.setConfigBean(openSamlConfigBean);
return adapter;
}
Aggregations