Class ProfileResponderIdLookupFunction

  • All Implemented Interfaces:
    Function<org.opensaml.profile.context.ProfileRequestContext,​String>, net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.IdentifiableComponent, net.shibboleth.utilities.java.support.component.IdentifiedComponent, net.shibboleth.utilities.java.support.component.InitializableComponent, org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.profile.context.ProfileRequestContext,​String>

    public class ProfileResponderIdLookupFunction
    extends net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
    implements org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.profile.context.ProfileRequestContext,​String>
    A function that returns responder id based on profile.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String apply​(org.opensaml.profile.context.ProfileRequestContext input)
      protected void doInitialize()
      void setDefaultResponder​(String resp)
      Set default responder value, usually entity id.
      void setProfileResponders​(Map<net.shibboleth.idp.profile.config.ProfileConfiguration,​String> resp)
      Set mapping from profile to responder value.
      • Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent

        setId
      • Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent

        getId
      • Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent

        destroy, doDestroy, initialize, isDestroyed, isInitialized
      • Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent

        getId
    • Field Detail

      • log

        @Nonnull
        private org.slf4j.Logger log
        Class logger.
      • defaultResponder

        @Nonnull
        private String defaultResponder
        Default responder value, usually entity id.
      • profileResponders

        @Nonnull
        private Map<String,​String> profileResponders
        Mapping from profile id to responder value.
    • Constructor Detail

      • ProfileResponderIdLookupFunction

        public ProfileResponderIdLookupFunction()
    • Method Detail

      • setDefaultResponder

        public void setDefaultResponder​(@Nonnull
                                        String resp)
        Set default responder value, usually entity id.
        Parameters:
        resp - default responder value, usually entity id
      • setProfileResponders

        public void setProfileResponders​(@Nullable
                                         Map<net.shibboleth.idp.profile.config.ProfileConfiguration,​String> resp)
        Set mapping from profile to responder value.
        Parameters:
        resp - mapping from profile to responder value
      • doInitialize

        protected void doInitialize()
                             throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
        Overrides:
        doInitialize in class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
        Throws:
        net.shibboleth.utilities.java.support.component.ComponentInitializationException
      • apply

        @Nullable
        public String apply​(@Nullable
                            org.opensaml.profile.context.ProfileRequestContext input)
        Specified by:
        apply in interface Function<org.opensaml.profile.context.ProfileRequestContext,​String>