public class SpringResourceMetadataProvider extends AbstractMetadataProvider
Resource
as the metadata source.AbstractMetadataProvider.EntityDescriptorIterator
Constructor and Description |
---|
SpringResourceMetadataProvider(org.springframework.core.io.Resource metadataResource)
Constructor taking a Spring Framework
Resource as the metadata source. |
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 SpringResourceMetadataProvider(org.springframework.core.io.Resource metadataResource)
Resource
as the metadata source.metadataResource
- the metadata sourcepublic String getID()
public MetadataResolver getMetadataResolver()
protected void createMetadataResolver(boolean requireValidMetadata, boolean failFastInitialization, MetadataFilter filter) throws ResolverException
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 resolverResolverException
- for errors creating 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.