Class CompositeMetadataResolver
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
org.opensaml.saml.metadata.resolver.impl.CompositeMetadataResolver
- All Implemented Interfaces:
Component,DestructableComponent,IdentifiedComponent,InitializableComponent,Resolver<EntityDescriptor,,CriteriaSet> ClearableMetadataResolver,MetadataResolver,RefreshableMetadataResolver
public class CompositeMetadataResolver
extends AbstractIdentifiedInitializableComponent
implements MetadataResolver, RefreshableMetadataResolver, ClearableMetadataResolver
A
MetadataResolver implementation that answers requests by composing the answers of child
MetadataResolvers.
Note: This appears to be unused, and contained a number of bugs that may or may not have been fully corrected.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private List<MetadataResolver>Resolvers composed by this resolver.private StringResolver type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidGets an immutable the list of currently registered resolvers.getType()booleanvoidrefresh()resolve(CriteriaSet criteria) resolveSingle(CriteriaSet criteria) voidsetMetadataFilter(MetadataFilter newFilter) voidsetRequireValidMetadata(boolean requireValidMetadata) voidsetResolvers(List<MetadataResolver> newResolvers) Sets the current set of metadata resolvers.voidSets the type of this resolver for reporting/logging.Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, setIdMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
resolverType
Resolver type. -
resolvers
Resolvers composed by this resolver.
-
-
Constructor Details
-
CompositeMetadataResolver
public CompositeMetadataResolver()Constructor.
-
-
Method Details
-
getResolvers
Gets an immutable the list of currently registered resolvers.- Returns:
- list of currently registered resolvers
-
setResolvers
Sets the current set of metadata resolvers.- Parameters:
newResolvers- the metadata resolvers to use- Throws:
ResolverException- thrown if there is a problem adding the metadata provider
-
getType
- Specified by:
getTypein interfaceMetadataResolver
-
setType
Sets the type of this resolver for reporting/logging.- Parameters:
type- type to set- Since:
- 5.0.0
-
isRequireValidMetadata
public boolean isRequireValidMetadata()- Specified by:
isRequireValidMetadatain interfaceMetadataResolver
-
setRequireValidMetadata
public void setRequireValidMetadata(boolean requireValidMetadata) - Specified by:
setRequireValidMetadatain interfaceMetadataResolver
-
getMetadataFilter
- Specified by:
getMetadataFilterin interfaceMetadataResolver
-
setMetadataFilter
- Specified by:
setMetadataFilterin interfaceMetadataResolver
-
clear
- Specified by:
clearin interfaceClearableMetadataResolver- Throws:
ResolverException
-
clear
- Specified by:
clearin interfaceClearableMetadataResolver- Throws:
ResolverException
-
refresh
- Specified by:
refreshin interfaceRefreshableMetadataResolver- Throws:
ResolverException
-
getLastUpdate
- Specified by:
getLastUpdatein interfaceRefreshableMetadataResolver
-
getLastRefresh
- Specified by:
getLastRefreshin interfaceRefreshableMetadataResolver
-
getLastSuccessfulRefresh
- Specified by:
getLastSuccessfulRefreshin interfaceRefreshableMetadataResolver
-
wasLastRefreshSuccess
- Specified by:
wasLastRefreshSuccessin interfaceRefreshableMetadataResolver
-
getLastFailureCause
- Specified by:
getLastFailureCausein interfaceRefreshableMetadataResolver
-