Class ReloadingRelyingPartyMetadataProvider
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
-
- net.shibboleth.idp.saml.metadata.impl.ReloadingRelyingPartyMetadataProvider
-
- All Implemented Interfaces:
Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,Resolver<EntityDescriptor,CriteriaSet>,MetadataResolver
public class ReloadingRelyingPartyMetadataProvider extends AbstractIdentifiableInitializableComponent implements MetadataResolver
This class uses the service interface to implementMetadataResolver.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private ReloadableService<MetadataResolver>serviceThe service which managed the reloading.
-
Constructor Summary
Constructors Constructor Description ReloadingRelyingPartyMetadataProvider(ReloadableService<MetadataResolver> resolverService)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataFiltergetMetadataFilter()booleanisRequireValidMetadata()Iterable<EntityDescriptor>resolve(CriteriaSet criteria)EntityDescriptorresolveSingle(CriteriaSet criteria)voidsetMetadataFilter(MetadataFilter newFilter)voidsetRequireValidMetadata(boolean requireValidMetadata)-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
doInitialize, getId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, 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.IdentifiedComponent
getId
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
service
private final ReloadableService<MetadataResolver> service
The service which managed the reloading.
-
-
Constructor Detail
-
ReloadingRelyingPartyMetadataProvider
public ReloadingRelyingPartyMetadataProvider(@Nonnull @ParameterName(name="resolverService") ReloadableService<MetadataResolver> resolverService)
Constructor.- Parameters:
resolverService- the service which will manage the loading.
-
-
Method Detail
-
resolve
@Nonnull public Iterable<EntityDescriptor> resolve(CriteriaSet criteria) throws ResolverException
- Specified by:
resolvein interfaceResolver<EntityDescriptor,CriteriaSet>- Throws:
ResolverException
-
resolveSingle
@Nullable public EntityDescriptor resolveSingle(CriteriaSet criteria) throws ResolverException
- Specified by:
resolveSinglein interfaceResolver<EntityDescriptor,CriteriaSet>- Throws:
ResolverException
-
isRequireValidMetadata
public boolean isRequireValidMetadata()
- Specified by:
isRequireValidMetadatain interfaceMetadataResolver
-
setRequireValidMetadata
public void setRequireValidMetadata(boolean requireValidMetadata)
- Specified by:
setRequireValidMetadatain interfaceMetadataResolver
-
getMetadataFilter
public MetadataFilter getMetadataFilter()
- Specified by:
getMetadataFilterin interfaceMetadataResolver
-
setMetadataFilter
public void setMetadataFilter(MetadataFilter newFilter)
- Specified by:
setMetadataFilterin interfaceMetadataResolver
-
-