Class AbstractRelyingPartyLookupFunction<ResultType>

  • Type Parameters:
    ResultType - return type of function
    All Implemented Interfaces:
    Function<org.opensaml.messaging.context.MessageContext,​ResultType>, org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,​ResultType>
    Direct Known Subclasses:
    HttpClientSecurityConfigurationLookupFunction, SignatureSigningConfigurationLookupFunction, SignatureValidationConfigurationLookupFunction

    public abstract class AbstractRelyingPartyLookupFunction<ResultType>
    extends Object
    implements org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,​ResultType>
    Abstract base class for a function that requires a ProfileRequestContext obtained via a lookup function, by default the parent of the specified MessageContext, and a RelyingPartyContext obtained via a lookup function, by default a child of the aforementioned parent.
    • Field Detail

      • relyingPartyContextLookupStrategy

        @Nonnull
        private Function<org.opensaml.messaging.context.MessageContext,​RelyingPartyContext> relyingPartyContextLookupStrategy
        Strategy used to locate the RelyingPartyContext associated with a given MessageContext.
      • profileRequestContextLookupStrategy

        @Nonnull
        private Function<org.opensaml.messaging.context.MessageContext,​org.opensaml.profile.context.ProfileRequestContext> profileRequestContextLookupStrategy
        Strategy used to locate the ProfileRequestContext associated with a given MessageContext.
    • Constructor Detail

      • AbstractRelyingPartyLookupFunction

        public AbstractRelyingPartyLookupFunction()
        Constructor.
    • Method Detail

      • getRelyingPartyContextLookupStrategy

        @Nonnull
        public Function<org.opensaml.messaging.context.MessageContext,​RelyingPartyContext> getRelyingPartyContextLookupStrategy()
        Get the strategy used to locate the RelyingPartyContext associated with a given MessageContext.
        Returns:
        lookup strategy
      • setRelyingPartyContextLookupStrategy

        public void setRelyingPartyContextLookupStrategy​(@Nonnull
                                                         Function<org.opensaml.messaging.context.MessageContext,​RelyingPartyContext> strategy)
        Set the strategy used to locate the RelyingPartyContext associated with a given MessageContext.
        Parameters:
        strategy - lookup strategy
      • getProfileRequestContextLookupStrategy

        @Nonnull
        public Function<org.opensaml.messaging.context.MessageContext,​org.opensaml.profile.context.ProfileRequestContext> getProfileRequestContextLookupStrategy()
        Get the strategy used to locate the ProfileRequestContext associated with a given MessageContext.
        Returns:
        lookup strategy
      • setProfileRequestContextLookupStrategy

        public void setProfileRequestContextLookupStrategy​(@Nonnull
                                                           Function<org.opensaml.messaging.context.MessageContext,​org.opensaml.profile.context.ProfileRequestContext> strategy)
        Set the strategy used to locate the ProfileRequestContext associated with a given MessageContext.
        Parameters:
        strategy - lookup strategy