Class StaticMetadataProvider
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- se.litsec.opensaml.saml2.metadata.provider.AbstractMetadataProvider
-
- se.litsec.opensaml.saml2.metadata.provider.StaticMetadataProvider
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MetadataProvider
public class StaticMetadataProvider extends AbstractMetadataProvider
AMetadataProviderthat is given an object representing SAML metadata (EntityDescriptor or EntitiesDescriptor).- 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 StaticMetadataProvider(EntitiesDescriptor entitiesDescriptor)Constructor that takes anEntitiesDescriptorobject.StaticMetadataProvider(EntityDescriptor entityDescriptor)Constructor that takes anEntityDescriptorobject.StaticMetadataProvider(Element element)Constructor that takes a DOM element representing the metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateMetadataResolver(boolean requireValidMetadata, boolean failFastInitialization, MetadataFilter filter)Creates the specificMetadataResolverinstance for the provider implementation.protected voiddestroyMetadataResolver()Destroys the metadata resolver.StringgetID()Returns the identifier for the provider.MetadataResolvergetMetadataResolver()Returns the underlying OpenSAML metadata resolver.protected voidinitializeMetadataResolver()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
-
StaticMetadataProvider
public StaticMetadataProvider(Element element)
Constructor that takes a DOM element representing the metadata.- Parameters:
element- DOM element
-
StaticMetadataProvider
public StaticMetadataProvider(EntityDescriptor entityDescriptor) throws MarshallingException
Constructor that takes anEntityDescriptorobject.- Parameters:
entityDescriptor- the metadata EntityDescriptor- Throws:
MarshallingException- if the supplied object cannot be marshalled
-
StaticMetadataProvider
public StaticMetadataProvider(EntitiesDescriptor entitiesDescriptor) throws MarshallingException
Constructor that takes anEntitiesDescriptorobject.- Parameters:
entitiesDescriptor- the metadata EntitiesDescriptor- Throws:
MarshallingException- if the supplied object cannot be marshalled
-
-
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 specificMetadataResolverinstance for the provider implementation.The
filterparameter is aMetadataFilterthat 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:
createMetadataResolverin 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 ComponentInitializationExceptionInitializes the metadata resolver.- Specified by:
initializeMetadataResolverin classAbstractMetadataProvider- Throws:
ComponentInitializationException- for initialization errors
-
destroyMetadataResolver
protected void destroyMetadataResolver()
Destroys the metadata resolver.- Specified by:
destroyMetadataResolverin classAbstractMetadataProvider
-
-