Interface MetadataPublishingProfileConfiguration

All Superinterfaces:
Component, IdentifiedComponent, ProfileConfiguration
All Known Implementing Classes:
MetadataPublishingProfileConfiguration

public interface MetadataPublishingProfileConfiguration extends ProfileConfiguration
Configuration support for publishing SAML 2.0 Metadata.
  • Field Details

  • Method Details

    • getTemplatePath

      @ConfigurationSetting(name="templatePath") @Nullable @NotEmpty String getTemplatePath(@Nullable ProfileRequestContext profileRequestContext)
      Gets the path to a template XML resource to source for the metadata.

      Defaults to null, resulting in a query to the configured MetadataResolver service for the configured "issuer" value as entityID to obtain metadata loaded into the Hub.

      If set, the path is evaluated as a Velocity template with the following variables populated:

      • agentID
      • applicationID
      • issuer
      • entityID
      Parameters:
      profileRequestContext - profile request context
      Returns:
      templated path to XML resource to serve
    • isUseVelocity

      @ConfigurationSetting(name="useVelocity") boolean isUseVelocity(@Nullable ProfileRequestContext profileRequestContext)
      Gets whether the template returned by getTemplatePath(ProfileRequestContext) is evaluated by Velocity or returned directly.

      Defaults to false; only relevant if a template path is used. The same variables are populated in evaluating the template as described for getTemplatePath(ProfileRequestContext).

      Parameters:
      profileRequestContext - profile request context
      Returns:
      true iff Velocity should be applied to the template
    • isSignMetadata

      @ConfigurationSetting(name="signMetadata") boolean isSignMetadata(@Nullable ProfileRequestContext profileRequestContext)
      Gets whether to sign the metadata being published dynamically.

      Defaults to false.

      Parameters:
      profileRequestContext - profile request context
      Returns:
      true iff the metadata should be signed in real time
    • getSigningCredential

      @ConfigurationSetting(name="signingCredential") @Nullable Credential getSigningCredential(@Nullable ProfileRequestContext profileRequestContext)
      Gets an optional Credential to use to sign the metadata if isSignMetadata(ProfileRequestContext) is true.

      If unset, the default configured service is used, resulting in effectively self-signed metadata using the same key used for SAML messages.

      Parameters:
      profileRequestContext - profile request context
      Returns:
      a signing credential or null
    • isResolveKeys

      @ConfigurationSetting(name="resolveKeys") boolean isResolveKeys(@Nullable ProfileRequestContext profileRequestContext)
      Gets whether to resolve signing and encryption keys from the configured CredentialResolver to publish into the Velocity context if that feature is enabled.

      Defaults to false.

      If true, this does not automatically remove any existing KeyDescriptor elements nor add any automatically, but provides the information to help do so.

      Parameters:
      profileRequestContext -
      Returns:
      true iff the credentials should be resolved for Velocity to access
    • getLifetime

      @ConfigurationSetting(name="lifetime") @Nullable @NonNegative Duration getLifetime(@Nullable ProfileRequestContext profileRequestContext)
      Gets the optional lifetime from which to compute and set the root element's validUntil attribute.

      Defaults to null.

      Only applied if the root element's existing value would be longer.

      Parameters:
      profileRequestContext - profile request context
      Returns:
      the time added to the current timestamp to set, or null to leave as is
    • getCacheDuration

      @ConfigurationSetting(name="cacheDuration") @Nullable @NonNegative Duration getCacheDuration(@Nullable ProfileRequestContext profileRequestContext)
      Gets the optional value to set in the root element's cacehDuration attribute.

      Defaults to null.

      Parameters:
      profileRequestContext - profile request context
      Returns:
      the cache duration, or null to leave as is