Class InitializeProxyProfileRequestContext

  • All Implemented Interfaces:
    net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.InitializableComponent, org.opensaml.profile.action.ProfileAction, Aware, MessageSource, MessageSourceAware, Action

    @ThreadSafe
    public final class InitializeProxyProfileRequestContext
    extends net.shibboleth.idp.profile.AbstractProfileAction
    Action that creates a new ProfileRequestContext via a creation strategy, and sets the profile and logging IDs, if provided.

    This is designed by default for use in creating a nested context tree beneath an active AuthenticationContext for use in managing a nested profile interaction with an external IdP.

    Event:
    EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX
    Postcondition:
    context is created per the supplied strategy
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean browserProfile
      Whether this is a browser-based profile request.
      private String loggingId
      The logging ID to initialize the context to.
      private String profileId
      The profile ID to initialize the context to.
      private Function<org.opensaml.profile.context.ProfileRequestContext,​org.opensaml.profile.context.ProfileRequestContext> profileRequestContextCreationStrategy
      Context creation strategy.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doExecute​(org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
      void setBrowserProfile​(boolean browser)
      Set whether the request is browser-based, defaults to false.
      void setLoggingId​(String id)
      Set the logging ID to populate into the context.
      void setProfileId​(String id)
      Set the profile ID to populate into the context.
      void setProfileRequestContextCreationStrategy​(Function<org.opensaml.profile.context.ProfileRequestContext,​org.opensaml.profile.context.ProfileRequestContext> strategy)
      Set the strategy to use to locate/create the ProfileRequestContext to operate on.
      • Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction

        doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
      • Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction

        doPreExecute, getActivationCondition, setActivationCondition
      • Methods inherited from class org.opensaml.profile.action.AbstractProfileAction

        doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
      • Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent

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

        initialize, isInitialized
    • Field Detail

      • profileRequestContextCreationStrategy

        @Nonnull
        private Function<org.opensaml.profile.context.ProfileRequestContext,​org.opensaml.profile.context.ProfileRequestContext> profileRequestContextCreationStrategy
        Context creation strategy.
      • profileId

        @Nullable
        private String profileId
        The profile ID to initialize the context to.
      • loggingId

        @Nullable
        private String loggingId
        The logging ID to initialize the context to.
      • browserProfile

        private boolean browserProfile
        Whether this is a browser-based profile request.
    • Constructor Detail

      • InitializeProxyProfileRequestContext

        public InitializeProxyProfileRequestContext()
        Constructor.
    • Method Detail

      • setProfileRequestContextCreationStrategy

        public void setProfileRequestContextCreationStrategy​(@Nonnull
                                                             Function<org.opensaml.profile.context.ProfileRequestContext,​org.opensaml.profile.context.ProfileRequestContext> strategy)
        Set the strategy to use to locate/create the ProfileRequestContext to operate on.
        Parameters:
        strategy - lookup/creation strategy
      • setProfileId

        public void setProfileId​(@Nullable
                                 String id)
        Set the profile ID to populate into the context.
        Parameters:
        id - profile ID to populate into the context
      • setLoggingId

        public void setLoggingId​(@Nullable
                                 String id)
        Set the logging ID to populate into the context.
        Parameters:
        id - logging ID to populate into the context
      • setBrowserProfile

        public void setBrowserProfile​(boolean browser)
        Set whether the request is browser-based, defaults to false.
        Parameters:
        browser - true iff the request is browser based
      • doExecute

        @Nonnull
        public void doExecute​(@Nonnull
                              org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
        Overrides:
        doExecute in class org.opensaml.profile.action.AbstractProfileAction