public class DynamicMetadataResolverAdapter extends AbstractMetadataResolverAdapter
DynamicMetadataResolverAdapter
that queries a metadata server on demand following
the metadata query protocol.configBean, logger, metadataResources, requireValidMetadata| Constructor and Description |
|---|
DynamicMetadataResolverAdapter(java.util.Map<org.springframework.core.io.Resource,org.opensaml.saml.metadata.resolver.filter.impl.MetadataFilterChain> metadataResources)
Instantiates a new static metadata resolver adapter.
|
| Modifier and Type | Method and Description |
|---|---|
org.opensaml.saml.saml2.metadata.EntityDescriptor |
getEntityDescriptorForEntityId(java.lang.String entityId)
Gets entity descriptor for entity id.
|
protected java.io.InputStream |
getResourceInputStream(org.springframework.core.io.Resource resource,
java.lang.String entityId)
Retrieve the remote source's input stream to parse data.
|
buildMetadataResolverAggregate, buildMetadataResolverAggregate, setRequireValidMetadatapublic DynamicMetadataResolverAdapter(java.util.Map<org.springframework.core.io.Resource,org.opensaml.saml.metadata.resolver.filter.impl.MetadataFilterChain> metadataResources)
metadataResources - the metadata resourcespublic org.opensaml.saml.saml2.metadata.EntityDescriptor getEntityDescriptorForEntityId(java.lang.String entityId)
MetadataResolverAdaptergetEntityDescriptorForEntityId in interface MetadataResolverAdaptergetEntityDescriptorForEntityId in class AbstractMetadataResolverAdapterentityId - the entity idprotected java.io.InputStream getResourceInputStream(org.springframework.core.io.Resource resource,
java.lang.String entityId)
throws java.io.IOException
AbstractMetadataResolverAdaptergetResourceInputStream in class AbstractMetadataResolverAdapterresource - the resourceentityId - the entity idjava.io.IOException - if stream cannot be read