public class DynamicMetadataResolverAdapter extends AbstractMetadataResolverAdapter
DynamicMetadataResolverAdapter
that queries a metadata server on demand following
the metadata query protocol.configBean, metadataResources, requireValidMetadata
Constructor and Description |
---|
DynamicMetadataResolverAdapter() |
DynamicMetadataResolverAdapter(java.util.Map<org.springframework.core.io.Resource,org.opensaml.saml.metadata.resolver.filter.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, setConfigBean, setMetadataResources, setRequireValidMetadata
public DynamicMetadataResolverAdapter(java.util.Map<org.springframework.core.io.Resource,org.opensaml.saml.metadata.resolver.filter.MetadataFilterChain> metadataResources)
metadataResources
- the metadata resourcespublic DynamicMetadataResolverAdapter()
public org.opensaml.saml.saml2.metadata.EntityDescriptor getEntityDescriptorForEntityId(java.lang.String entityId)
MetadataResolverAdapter
getEntityDescriptorForEntityId
in interface MetadataResolverAdapter
getEntityDescriptorForEntityId
in class AbstractMetadataResolverAdapter
entityId
- the entity idprotected java.io.InputStream getResourceInputStream(org.springframework.core.io.Resource resource, java.lang.String entityId) throws java.io.IOException
AbstractMetadataResolverAdapter
getResourceInputStream
in class AbstractMetadataResolverAdapter
resource
- the resourceentityId
- the entity idjava.io.IOException
- if stream cannot be read