Class ProxyMetadataProvider
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- se.litsec.opensaml.saml2.metadata.provider.AbstractMetadataProvider
-
- se.litsec.opensaml.saml2.metadata.provider.ProxyMetadataProvider
-
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,MetadataProvider
public class ProxyMetadataProvider extends AbstractMetadataProvider
A metadata provider that is constructed by assigning an OpenSAMLMetadataResolver
instance.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class se.litsec.opensaml.saml2.metadata.provider.AbstractMetadataProvider
AbstractMetadataProvider.EntityDescriptorIterator
-
-
Constructor Summary
Constructors Constructor Description ProxyMetadataProvider(MetadataResolver metadataResolver)
Constructor assigning the OpenSAML metadata resolver that this instance should proxy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createMetadataResolver(boolean requireValidMetadata, boolean failFastInitialization, MetadataFilter filter)
Creates the specificMetadataResolver
instance for the provider implementation.protected void
destroyMetadataResolver()
Destroys the metadata resolver.String
getID()
Returns the identifier for the provider.MetadataResolver
getMetadataResolver()
Returns the underlying OpenSAML metadata resolver.protected void
initializeMetadataResolver()
Initializes the metadata resolver.-
Methods inherited from class se.litsec.opensaml.saml2.metadata.provider.AbstractMetadataProvider
createFilter, doDestroy, doInitialize, getEntityDescriptor, getIdentityProviders, getIDPSSODescriptor, getLastUpdate, getMetadata, getMetadataDOM, getServiceProviders, getSignatureVerificationCertificates, getSPSSODescriptor, iterator, iterator, refresh, setExclusionPredicates, setFailFastInitialization, setInclusionPredicates, setPerformSchemaValidation, setRequireValidMetadata, setSignatureVerificationCertificate, setSignatureVerificationCertificates
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent
destroy, isDestroyed
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Constructor Detail
-
ProxyMetadataProvider
public ProxyMetadataProvider(MetadataResolver metadataResolver)
Constructor assigning the OpenSAML metadata resolver that this instance should proxy.The supplied instance must extend the
AbstractMetadataResolver
class.- Parameters:
metadataResolver
- the metadata resolver to proxy
-
-
Method Detail
-
getID
public String getID()
Returns the identifier for the provider.- Returns:
- the identifier
-
getMetadataResolver
public MetadataResolver getMetadataResolver()
Returns the underlying OpenSAML metadata resolver.- Returns:
- OpenSAML metadata resolver
-
createMetadataResolver
protected void createMetadataResolver(boolean requireValidMetadata, boolean failFastInitialization, MetadataFilter filter)
Creates the specificMetadataResolver
instance for the provider implementation.The
filter
parameter is aMetadataFilter
that must be installed for the resolver. Any other filters that should be installed by the specific instance should be placed last in a filter chain.- Specified by:
createMetadataResolver
in classAbstractMetadataProvider
- Parameters:
requireValidMetadata
- should be passed intoMetadataResolver.setRequireValidMetadata(boolean)
failFastInitialization
- should be passed intoAbstractMetadataResolver.setFailFastInitialization(boolean)
(if applicable)filter
- filter that must be installed for the resolver
-
initializeMetadataResolver
protected void initializeMetadataResolver() throws ComponentInitializationException
Initializes the metadata resolver.- Specified by:
initializeMetadataResolver
in classAbstractMetadataProvider
- Throws:
ComponentInitializationException
- for initialization errors
-
destroyMetadataResolver
protected void destroyMetadataResolver()
Destroys the metadata resolver.- Specified by:
destroyMetadataResolver
in classAbstractMetadataProvider
-
-