Class AbstractRelyingPartyPredicate

  • All Implemented Interfaces:
    Predicate<org.opensaml.messaging.context.MessageContext>, net.shibboleth.utilities.java.support.logic.Predicate<org.opensaml.messaging.context.MessageContext>

    public abstract class AbstractRelyingPartyPredicate
    extends Object
    implements net.shibboleth.utilities.java.support.logic.Predicate<org.opensaml.messaging.context.MessageContext>
    Abstract base class for a predicate that evaluates a MessageContext and which requires a RelyingPartyContext obtained via a lookup function, by default a child of the InOutOperationContext the parent of the specified MessageContext.
    • Field Detail

      • relyingPartyContextLookupStrategy

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

      • AbstractRelyingPartyPredicate

        public AbstractRelyingPartyPredicate()
        Constructor.
    • Method Detail

      • 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
      • 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