Class FunctionDrivenDynamicHTTPMetadataResolver

All Implemented Interfaces:
Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent, Resolver<EntityDescriptor,CriteriaSet>, ClearableMetadataResolver, DynamicMetadataResolver, MetadataResolver, RemoteMetadataResolver

public class FunctionDrivenDynamicHTTPMetadataResolver extends AbstractDynamicHTTPMetadataResolver implements RemoteMetadataResolver
Simple implementation of an HTTP-based dynamic metadata resolver which builds the request URL to process based on a 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.

  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Logger.
    • requestURLBuilder

      @Nonnull private Function<CriteriaSet,String> requestURLBuilder
      Function for building the request URL.
  • Constructor Details

    • FunctionDrivenDynamicHTTPMetadataResolver

      public FunctionDrivenDynamicHTTPMetadataResolver(@Nonnull org.apache.hc.client5.http.classic.HttpClient client)
      Constructor.
      Parameters:
      client - the instance of HttpClient used to fetch remote metadata
    • FunctionDrivenDynamicHTTPMetadataResolver

      public FunctionDrivenDynamicHTTPMetadataResolver(@Nullable Timer backgroundTaskTimer, @Nonnull org.apache.hc.client5.http.classic.HttpClient client)
      Constructor.
      Parameters:
      backgroundTaskTimer - the Timer instance used to run resolver background managment tasks
      client - the instance of HttpClient used to fetch remote metadata
  • Method Details