public abstract class AbstractMetadataResolverAdapter extends java.lang.Object implements MetadataResolverAdapter
AbstractMetadataResolverAdapter that encapsulates
commons between static and dynamic resolvers.| Modifier and Type | Field and Description |
|---|---|
protected org.jasig.cas.support.saml.OpenSamlConfigBean |
configBean
The openSAML config bean.
|
protected org.slf4j.Logger |
logger
Logger instance.
|
protected java.util.Map<org.springframework.core.io.Resource,org.opensaml.saml.metadata.resolver.filter.impl.MetadataFilterChain> |
metadataResources
Metadata resources along with filters to perform validation.
|
protected boolean |
requireValidMetadata
Whether the metadata resolver should require valid metadata.
|
| Constructor and Description |
|---|
AbstractMetadataResolverAdapter()
Instantiates a new abstract metadata resolver adapter.
|
AbstractMetadataResolverAdapter(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 |
|---|---|
protected void |
buildMetadataResolverAggregate()
Build metadata resolver aggregate.
|
void |
buildMetadataResolverAggregate(java.lang.String entityId)
Build metadata resolver aggregate.
|
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.
|
void |
setRequireValidMetadata(boolean requireValidMetadata) |
protected final org.slf4j.Logger logger
@NotNull protected final java.util.Map<org.springframework.core.io.Resource,org.opensaml.saml.metadata.resolver.filter.impl.MetadataFilterChain> metadataResources
protected boolean requireValidMetadata
@Autowired @NotNull protected org.jasig.cas.support.saml.OpenSamlConfigBean configBean
public AbstractMetadataResolverAdapter()
public AbstractMetadataResolverAdapter(java.util.Map<org.springframework.core.io.Resource,org.opensaml.saml.metadata.resolver.filter.impl.MetadataFilterChain> metadataResources)
metadataResources - the metadata resourcespublic void setRequireValidMetadata(boolean requireValidMetadata)
protected java.io.InputStream getResourceInputStream(org.springframework.core.io.Resource resource,
java.lang.String entityId)
throws java.io.IOException
resource - the resourceentityId - the entity idjava.io.IOException - if stream cannot be readpublic org.opensaml.saml.saml2.metadata.EntityDescriptor getEntityDescriptorForEntityId(java.lang.String entityId)
MetadataResolverAdaptergetEntityDescriptorForEntityId in interface MetadataResolverAdapterentityId - the entity idprotected final void buildMetadataResolverAggregate()
public final void buildMetadataResolverAggregate(java.lang.String entityId)
entityId - the entity id