public class StaticMetadataProvider extends AbstractMetadataProvider
MetadataProvider
that is given an object representing SAML metadata (EntityDescriptor or
EntitiesDescriptor).AbstractMetadataProvider.EntityDescriptorIterator
Constructor and Description |
---|
StaticMetadataProvider(Element element)
Constructor that takes a DOM element representing the metadata.
|
StaticMetadataProvider(EntitiesDescriptor entitiesDescriptor)
Constructor that takes an
EntitiesDescriptor object. |
StaticMetadataProvider(EntityDescriptor entityDescriptor)
Constructor that takes an
EntityDescriptor object. |
Modifier and Type | Method and Description |
---|---|
protected void |
createMetadataResolver(boolean requireValidMetadata,
boolean failFastInitialization,
MetadataFilter filter)
Creates the specific
MetadataResolver 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.
|
createFilter, doDestroy, doInitialize, getEntityDescriptor, getIdentityProviders, getIDPSSODescriptor, getLastUpdate, getMetadata, getMetadataDOM, getServiceProviders, getSPSSODescriptor, iterator, iterator, refresh, setExclusionPredicates, setFailFastInitialization, setInclusionPredicates, setPerformSchemaValidation, setRequireValidMetadata, setSignatureVerificationCertificate
destroy, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, isInitialized
destroy, isDestroyed
public StaticMetadataProvider(Element element)
element
- DOM elementpublic StaticMetadataProvider(EntityDescriptor entityDescriptor) throws MarshallingException
EntityDescriptor
object.entityDescriptor
- the metadata EntityDescriptorMarshallingException
- if the supplied object cannot be marshalledpublic StaticMetadataProvider(EntitiesDescriptor entitiesDescriptor) throws MarshallingException
EntitiesDescriptor
object.entitiesDescriptor
- the metadata EntitiesDescriptorMarshallingException
- if the supplied object cannot be marshalledpublic String getID()
public MetadataResolver getMetadataResolver()
protected void createMetadataResolver(boolean requireValidMetadata, boolean failFastInitialization, MetadataFilter filter)
MetadataResolver
instance for the provider implementation.
The filter
parameter is a MetadataFilter
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.
createMetadataResolver
in class AbstractMetadataProvider
requireValidMetadata
- should be passed into MetadataResolver.setRequireValidMetadata(boolean)
failFastInitialization
- should be passed into AbstractMetadataResolver.setFailFastInitialization(boolean)
(if applicable)filter
- filter that must be installed for the resolverprotected void initializeMetadataResolver() throws ComponentInitializationException
initializeMetadataResolver
in class AbstractMetadataProvider
ComponentInitializationException
- for initialization errorsprotected void destroyMetadataResolver()
destroyMetadataResolver
in class AbstractMetadataProvider
Copyright © 2018 Litsec AB. All rights reserved.