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.BasicMetadataResponseHandlerAbstractDynamicMetadataResolver.BackingStoreCleanupSweeper, AbstractDynamicMetadataResolver.DynamicEntityBackingStore, AbstractDynamicMetadataResolver.EntityManagementDataAbstractMetadataResolver.EntityBackingStore| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Logger.
|
private com.google.common.base.Function<java.lang.String,java.lang.String> |
requestURLBuilder
Function for building the request URL.
|
DEFAULT_CONTENT_TYPES| Constructor and Description |
|---|
FunctionDrivenDynamicHTTPMetadataResolver(org.apache.http.client.HttpClient client)
Constructor.
|
FunctionDrivenDynamicHTTPMetadataResolver(java.util.Timer backgroundTaskTimer,
org.apache.http.client.HttpClient client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.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<java.lang.String,java.lang.String> |
getRequestURLBuilder()
Get the function which builds the request URL.
|
void |
setRequestURLBuilder(com.google.common.base.Function<java.lang.String,java.lang.String> builder)
Set the function which builds the request URL.
|
buildHttpClientContext, buildHttpRequest, checkTLSCredentialTrusted, doDestroy, fetchFromOriginSource, getSupportedContentTypes, initMetadataResolver, setBasicCredentials, setBasicCredentialsWithScope, setCredentialsProvider, setSupportedContentTypes, setTLSTrustEnginecomputeExpirationTime, computeRefreshTriggerTime, createNewBackingStore, getBackingStore, getCleanupTaskInterval, getMaxCacheDuration, getMaxIdleEntityData, getMinCacheDuration, getRefreshDelayFactor, isRemoveIdleEntityData, lookupEntityID, preProcessEntityDescriptor, processNewMetadata, resolve, resolveFromOriginSource, setCleanupTaskInterval, setMaxCacheDuration, setMaxIdleEntityData, setMinCacheDuration, setRefreshDelayFactor, setRemoveIdleEntityData, shouldAttemptRefreshdoInitialize, filterMetadata, getMetadataFilter, getParserPool, getUnmarshallerFactory, indexEntityDescriptor, isFailFastInitialization, isRequireValidMetadata, isValid, lookupIndexedEntityID, preProcessEntitiesDescriptor, releaseMetadataDOM, removeByEntityID, resolveSingle, setBackingStore, setFailFastInitialization, setMetadataFilter, setParserPool, setRequireValidMetadata, unmarshallMetadatasetIdgetIddestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetadataFilter, isRequireValidMetadata, setMetadataFilter, setRequireValidMetadataprivate final org.slf4j.Logger log
private com.google.common.base.Function<java.lang.String,java.lang.String> requestURLBuilder
public FunctionDrivenDynamicHTTPMetadataResolver(org.apache.http.client.HttpClient client)
client - the instance of HttpClient used to fetch remote metadatapublic FunctionDrivenDynamicHTTPMetadataResolver(@Nullable
java.util.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<java.lang.String,java.lang.String> getRequestURLBuilder()
Defaults to an instance of HTTPEntityIDRequestURLBuilder.
public void setRequestURLBuilder(@Nonnull
com.google.common.base.Function<java.lang.String,java.lang.String> builder)
Defaults to an instance of HTTPEntityIDRequestURLBuilder.
builder - the reqeust URL builder function instance@Nullable
protected java.lang.String buildRequestURL(@Nonnull
net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria)
buildRequestURL in class AbstractDynamicHTTPMetadataResolvercriteria - the input criteria set