public class FunctionDrivenDynamicHTTPMetadataResolver extends AbstractDynamicHTTPMetadataResolver
Function
instance.
The function defaults to an instance of HTTPEntityIDRequestURLBuilder
, thereby implementing
the "well-known location" resolution mechanism defined in the SAML 2 metadata specification if the entity ID
is an HTTP or HTTPS URL.
AbstractDynamicHTTPMetadataResolver.BasicMetadataResponseHandler
AbstractDynamicMetadataResolver.BackingStoreCleanupSweeper, AbstractDynamicMetadataResolver.DefaultCacheKeyGenerator, AbstractDynamicMetadataResolver.DynamicEntityBackingStore, AbstractDynamicMetadataResolver.EntityManagementData, AbstractDynamicMetadataResolver.PersistentCacheInitializationMetrics
AbstractMetadataResolver.EntityBackingStore
Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Logger.
|
private com.google.common.base.Function<String,String> |
requestURLBuilder
Function for building the request URL.
|
DEFAULT_CONTENT_TYPES, MDC_ATTRIB_CURRENT_REQUEST_URI
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 |
---|
FunctionDrivenDynamicHTTPMetadataResolver(org.apache.http.client.HttpClient client)
Constructor.
|
FunctionDrivenDynamicHTTPMetadataResolver(Timer backgroundTaskTimer,
org.apache.http.client.HttpClient client)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
buildRequestURL(net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria)
Build the request URL based on the input criteria set.
|
com.google.common.base.Function<String,String> |
getRequestURLBuilder()
Get the function which builds the request URL.
|
void |
setRequestURLBuilder(com.google.common.base.Function<String,String> builder)
Set the function which builds the request URL.
|
buildHttpClientContext, buildHttpClientContext, buildHttpRequest, checkTLSCredentialTrusted, doDestroy, fetchFromOriginSource, getHttpClientSecurityParameters, getSupportedContentTypes, getSupportedMediaTypes, initMetadataResolver, setBasicCredentials, setBasicCredentialsWithScope, setCredentialsProvider, setHttpClientSecurityParameters, setSupportedContentTypes, setTLSTrustEngine
computeExpirationTime, computeRefreshTriggerTime, createNewBackingStore, getBackgroundInitializationFromCacheDelay, getBackingStore, getCleanupTaskInterval, getInitializationFromCachePredicate, getMaxCacheDuration, getMaxIdleEntityData, getMetricsBaseName, getMinCacheDuration, getPersistentCacheKeyGenerator, getPersistentCacheManager, getRefreshDelayFactor, initializeFromPersistentCache, isInitializeFromPersistentCacheInBackground, isPersistentCachingEnabled, isRemoveIdleEntityData, lookupEntityID, prepareForFiltering, preProcessEntityDescriptor, processNewMetadata, processNewMetadata, processPersistentCacheEntry, removeByEntityID, resolve, resolveFromOriginSource, setBackgroundInitializationFromCacheDelay, setCleanupTaskInterval, setInitializationFromCachePredicate, setInitializeFromPersistentCacheInBackground, setMaxCacheDuration, setMaxIdleEntityData, setMetricsBaseName, setMinCacheDuration, setPersistentCacheKeyGenerator, setPersistentCacheManager, setRefreshDelayFactor, setRemoveIdleEntityData, shouldAttemptRefresh
doInitialize, 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, unmarshallMetadata
setId
getId
destroy, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetadataFilter, isRequireValidMetadata, setMetadataFilter, setRequireValidMetadata
public FunctionDrivenDynamicHTTPMetadataResolver(org.apache.http.client.HttpClient client)
client
- the instance of HttpClient
used to fetch remote metadatapublic FunctionDrivenDynamicHTTPMetadataResolver(@Nullable Timer backgroundTaskTimer, @Nonnull org.apache.http.client.HttpClient client)
backgroundTaskTimer
- the Timer
instance used to run resolver background managment tasksclient
- the instance of HttpClient
used to fetch remote metadata@Nonnull public com.google.common.base.Function<String,String> getRequestURLBuilder()
Defaults to an instance of HTTPEntityIDRequestURLBuilder
.
public void setRequestURLBuilder(@Nonnull com.google.common.base.Function<String,String> builder)
Defaults to an instance of HTTPEntityIDRequestURLBuilder
.
builder
- the reqeust URL builder function instance@Nullable protected String buildRequestURL(@Nonnull net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria)
buildRequestURL
in class AbstractDynamicHTTPMetadataResolver
criteria
- the input criteria setCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.