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
AMetadataProvider
that 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 anEntitiesDescriptor
object.StaticMetadataProvider(EntityDescriptor entityDescriptor)
Constructor that takes anEntityDescriptor
object.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 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
-
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 anEntityDescriptor
object.- Parameters:
entityDescriptor
- the metadata EntityDescriptor- Throws:
MarshallingException
- if the supplied object cannot be marshalled
-
StaticMetadataProvider
public StaticMetadataProvider(EntitiesDescriptor entitiesDescriptor) throws MarshallingException
Constructor that takes anEntitiesDescriptor
object.- 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 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
-
-