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.DynamicEntityBackingStore, AbstractDynamicMetadataResolver.EntityManagementData
AbstractMetadataResolver.EntityBackingStore
DEFAULT_CONTENT_TYPES
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(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, buildHttpRequest, checkTLSCredentialTrusted, doDestroy, fetchFromOriginSource, getSupportedContentTypes, initMetadataResolver, setBasicCredentials, setBasicCredentialsWithScope, setCredentialsProvider, setSupportedContentTypes, setTLSTrustEngine
computeExpirationTime, computeRefreshTriggerTime, createNewBackingStore, getBackingStore, getCleanupTaskInterval, getMaxCacheDuration, getMaxIdleEntityData, getMinCacheDuration, getRefreshDelayFactor, isRemoveIdleEntityData, lookupEntityID, preProcessEntityDescriptor, processNewMetadata, resolve, resolveFromOriginSource, setCleanupTaskInterval, setMaxCacheDuration, setMaxIdleEntityData, setMinCacheDuration, setRefreshDelayFactor, setRemoveIdleEntityData, shouldAttemptRefresh
doInitialize, filterMetadata, getMetadataFilter, getParserPool, getUnmarshallerFactory, indexEntityDescriptor, isFailFastInitialization, isRequireValidMetadata, isValid, lookupIndexedEntityID, preProcessEntitiesDescriptor, releaseMetadataDOM, removeByEntityID, resolveSingle, setBackingStore, setFailFastInitialization, setMetadataFilter, setParserPool, setRequireValidMetadata, unmarshallMetadata
setId
getId
destroy, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetadataFilter, isRequireValidMetadata, setMetadataFilter, setRequireValidMetadata
resolveSingle
getId
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 CriteriaSet criteria)
buildRequestURL
in class AbstractDynamicHTTPMetadataResolver
criteria
- the input criteria setCopyright © 2016 JBoss by Red Hat. All rights reserved.