Class AbstractRelyingPartyPredicate
- java.lang.Object
-
- net.shibboleth.idp.profile.logic.messaging.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 aMessageContextand which requires aRelyingPartyContextobtained via a lookup function, by default a child of theInOutOperationContextthe parent of the specifiedMessageContext.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<org.opensaml.messaging.context.MessageContext,RelyingPartyContext>relyingPartyContextLookupStrategyStrategy used to locate theRelyingPartyContextassociated with a givenMessageContext.
-
Constructor Summary
Constructors Constructor Description AbstractRelyingPartyPredicate()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function<org.opensaml.messaging.context.MessageContext,RelyingPartyContext>getRelyingPartyContextLookupStrategy()Get the strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.voidsetRelyingPartyContextLookupStrategy(Function<org.opensaml.messaging.context.MessageContext,RelyingPartyContext> strategy)Set the strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.
-
-
-
Field Detail
-
relyingPartyContextLookupStrategy
@Nonnull private Function<org.opensaml.messaging.context.MessageContext,RelyingPartyContext> relyingPartyContextLookupStrategy
Strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.
-
-
Method Detail
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<org.opensaml.messaging.context.MessageContext,RelyingPartyContext> strategy)Set the strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.- Parameters:
strategy- lookup strategy
-
getRelyingPartyContextLookupStrategy
@Nonnull public Function<org.opensaml.messaging.context.MessageContext,RelyingPartyContext> getRelyingPartyContextLookupStrategy()
Get the strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.- Returns:
- lookup strategy
-
-