public class LocalDynamicMetadataResolver extends AbstractDynamicMetadataResolver
XMLObjectLoadSaveManager.AbstractDynamicMetadataResolver.BackingStoreCleanupSweeper, AbstractDynamicMetadataResolver.DefaultCacheKeyGenerator, AbstractDynamicMetadataResolver.DynamicEntityBackingStore, AbstractDynamicMetadataResolver.EntityManagementData, AbstractDynamicMetadataResolver.PersistentCacheInitializationMetricsAbstractMetadataResolver.EntityBackingStore| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Logger.
|
private Function<CriteriaSet,String> |
sourceKeyGenerator
Function for generating the String key used with the source manager.
|
private org.opensaml.core.xml.persist.XMLObjectLoadSaveManager<org.opensaml.core.xml.XMLObject> |
sourceManager
The manager for the local store of metadata.
|
METRIC_GAUGE_NUM_LIVE_ENTITYIDS, METRIC_GAUGE_PERSISTENT_CACHE_INIT, METRIC_RATIOGAUGE_FETCH_TO_RESOLVE, METRIC_TIMER_FETCH_FROM_ORIGIN_SOURCE, METRIC_TIMER_RESOLVE| Constructor and Description |
|---|
LocalDynamicMetadataResolver(Timer backgroundTaskTimer,
org.opensaml.core.xml.persist.XMLObjectLoadSaveManager<org.opensaml.core.xml.XMLObject> manager,
Function<CriteriaSet,String> keyGenerator)
Constructor.
|
LocalDynamicMetadataResolver(org.opensaml.core.xml.persist.XMLObjectLoadSaveManager<org.opensaml.core.xml.XMLObject> manager)
Constructor.
|
LocalDynamicMetadataResolver(org.opensaml.core.xml.persist.XMLObjectLoadSaveManager<org.opensaml.core.xml.XMLObject> manager,
Function<CriteriaSet,String> keyGenerator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.opensaml.core.xml.XMLObject |
fetchFromOriginSource(CriteriaSet criteria)
Fetch the metadata from the origin source.
|
computeExpirationTime, computeRefreshTriggerTime, createNewBackingStore, doDestroy, getBackgroundInitializationFromCacheDelay, getBackingStore, getCleanupTaskInterval, getInitializationFromCachePredicate, getMaxCacheDuration, getMaxIdleEntityData, getMetricsBaseName, getMinCacheDuration, getPersistentCacheKeyGenerator, getPersistentCacheManager, getRefreshDelayFactor, initializeFromPersistentCache, initMetadataResolver, isInitializeFromPersistentCacheInBackground, isPersistentCachingEnabled, isRemoveIdleEntityData, lookupEntityID, prepareForFiltering, preProcessEntityDescriptor, processNewMetadata, processNewMetadata, processPersistentCacheEntry, removeByEntityID, resolve, resolveFromOriginSource, setBackgroundInitializationFromCacheDelay, setCleanupTaskInterval, setInitializationFromCachePredicate, setInitializeFromPersistentCacheInBackground, setMaxCacheDuration, setMaxIdleEntityData, setMetricsBaseName, setMinCacheDuration, setPersistentCacheKeyGenerator, setPersistentCacheManager, setRefreshDelayFactor, setRemoveIdleEntityData, shouldAttemptRefreshdoInitialize, filterMetadata, getCriterionPredicateRegistry, getLogPrefix, getMetadataFilter, getParserPool, getUnmarshallerFactory, indexEntityDescriptor, isFailFastInitialization, isRequireValidMetadata, isSatisfyAnyPredicates, isUseDefaultPredicateRegistry, isValid, lookupIndexedEntityID, predicateFilterCandidates, preProcessEntitiesDescriptor, releaseMetadataDOM, resolveSingle, setBackingStore, setCriterionPredicateRegistry, setFailFastInitialization, setMetadataFilter, setParserPool, setRequireValidMetadata, setSatisfyAnyPredicates, setUseDefaultPredicateRegistry, unmarshallMetadatasetIdgetIddestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetadataFilter, isRequireValidMetadata, setMetadataFilter, setRequireValidMetadataresolveSinglegetIdprivate org.slf4j.Logger log
@Nonnull private org.opensaml.core.xml.persist.XMLObjectLoadSaveManager<org.opensaml.core.xml.XMLObject> sourceManager
@Nonnull private Function<CriteriaSet,String> sourceKeyGenerator
public LocalDynamicMetadataResolver(@Nonnull org.opensaml.core.xml.persist.XMLObjectLoadSaveManager<org.opensaml.core.xml.XMLObject> manager)
Source key generator will be an internal instance of EntityIDDigestGenerator,
with all default parameters.
manager - the manager for the local source of metadatapublic LocalDynamicMetadataResolver(@Nonnull org.opensaml.core.xml.persist.XMLObjectLoadSaveManager<org.opensaml.core.xml.XMLObject> manager, @Nullable Function<CriteriaSet,String> keyGenerator)
manager - the manager for the local source of metadatakeyGenerator - the source key generator functionpublic LocalDynamicMetadataResolver(@Nullable Timer backgroundTaskTimer, @Nonnull org.opensaml.core.xml.persist.XMLObjectLoadSaveManager<org.opensaml.core.xml.XMLObject> manager, @Nullable Function<CriteriaSet,String> keyGenerator)
If the supplied source key generator is null, an internal instance of EntityIDDigestGenerator
will be used, with all default parameters.
backgroundTaskTimer - timer for management of background tasksmanager - the manager for the local source of metadatakeyGenerator - the source key generator functionprotected org.opensaml.core.xml.XMLObject fetchFromOriginSource(CriteriaSet criteria) throws IOException
fetchFromOriginSource in class AbstractDynamicMetadataResolvercriteria - the input criteria setIOException - if there is a fatal error fetching metadata from the origin sourceCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.