Class SelfEncryptionConfigurationLookupFunction

  • All Implemented Interfaces:
    Function<org.opensaml.profile.context.ProfileRequestContext,​List<org.opensaml.xmlsec.EncryptionConfiguration>>

    public class SelfEncryptionConfigurationLookupFunction
    extends Object
    implements Function<org.opensaml.profile.context.ProfileRequestContext,​List<org.opensaml.xmlsec.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 Detail

      • selfConfig

        @Nullable
        private org.opensaml.xmlsec.EncryptionConfiguration selfConfig
        The self-encryption configuration.
      • includeProfileDefaultConfiguration

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

      • SelfEncryptionConfigurationLookupFunction

        public SelfEncryptionConfigurationLookupFunction()
    • Method Detail

      • 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
                                         org.opensaml.xmlsec.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<org.opensaml.xmlsec.EncryptionConfiguration> apply​(@Nullable
                                                                       org.opensaml.profile.context.ProfileRequestContext input)
        Specified by:
        apply in interface Function<org.opensaml.profile.context.ProfileRequestContext,​List<org.opensaml.xmlsec.EncryptionConfiguration>>