Class SelfEncryptionConfigurationLookupFunction

java.lang.Object
net.shibboleth.idp.profile.config.navigate.SelfEncryptionConfigurationLookupFunction
All Implemented Interfaces:
Function<ProfileRequestContext,​List<EncryptionConfiguration>>

public class SelfEncryptionConfigurationLookupFunction
extends Object
implements Function<ProfileRequestContext,​List<EncryptionConfiguration>>
A function that returns a EncryptionConfiguration list intended for self-encryption cases.

A self-specific EncryptionConfiguration may be supplied. This, if present will be composed with the global config SecurityConfigurationSupport.getGlobalEncryptionConfiguration()

  • Field Details

    • selfConfig

      @Nullable private EncryptionConfiguration selfConfig
      The self-encryption configuration.
    • rpResolver

      @Nullable private RelyingPartyConfigurationResolver rpResolver
      A resolver for default security configurations.
    • includeProfileDefaultConfiguration

      private boolean includeProfileDefaultConfiguration
      Flag indicating whether the profile default configuration should be included in the returned list.
  • Constructor Details

    • SelfEncryptionConfigurationLookupFunction

      public SelfEncryptionConfigurationLookupFunction()
  • Method Details

    • setRelyingPartyConfigurationResolver

      public void setRelyingPartyConfigurationResolver​(@Nullable RelyingPartyConfigurationResolver resolver)
      Set the resolver for default security configurations.
      Parameters:
      resolver - the resolver to use
    • setSelfConfiguration

      public void setSelfConfiguration​(@Nullable EncryptionConfiguration config)
      Set the self-encryption configuration.
      Parameters:
      config - the self-encryption EncryptionConfiguration
    • setIncludeProfileDefaultConfiguration

      public void setIncludeProfileDefaultConfiguration​(boolean flag)
      Set the flag indicating whether the profile default configuration should be included in the returned list.
      Parameters:
      flag - true if profile default should be included, false otherwise
    • apply

      @Nullable public List<EncryptionConfiguration> apply​(@Nullable ProfileRequestContext input)
      Specified by:
      apply in interface Function<ProfileRequestContext,​List<EncryptionConfiguration>>