Class AbstractRelyingPartyPredicate
java.lang.Object
net.shibboleth.idp.profile.logic.messaging.AbstractRelyingPartyPredicate
- All Implemented Interfaces:
Predicate<MessageContext>
,Predicate<MessageContext>
- Direct Known Subclasses:
ClientTLSArtifactRequestsPredicate
,ClientTLSSOAPLogoutRequestsPredicate
,SignArtifactRequestsPredicate
,SignSOAPLogoutRequestsPredicate
public abstract class AbstractRelyingPartyPredicate extends Object implements Predicate<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 Summary
Fields Modifier and Type Field Description private Function<MessageContext,RelyingPartyContext>
relyingPartyContextLookupStrategy
Strategy used to locate theRelyingPartyContext
associated with a givenMessageContext
. -
Constructor Summary
Constructors Constructor Description AbstractRelyingPartyPredicate()
Constructor. -
Method Summary
Modifier and Type Method Description Function<MessageContext,RelyingPartyContext>
getRelyingPartyContextLookupStrategy()
Get the strategy used to locate theRelyingPartyContext
associated with a givenMessageContext
.void
setRelyingPartyContextLookupStrategy(Function<MessageContext,RelyingPartyContext> strategy)
Set the strategy used to locate theRelyingPartyContext
associated with a givenMessageContext
.
-
Field Details
-
relyingPartyContextLookupStrategy
Strategy used to locate theRelyingPartyContext
associated with a givenMessageContext
.
-
-
Constructor Details
-
AbstractRelyingPartyPredicate
public AbstractRelyingPartyPredicate()Constructor.
-
-
Method Details
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<MessageContext,RelyingPartyContext> strategy)Set the strategy used to locate theRelyingPartyContext
associated with a givenMessageContext
.- Parameters:
strategy
- lookup strategy
-
getRelyingPartyContextLookupStrategy
@Nonnull public Function<MessageContext,RelyingPartyContext> getRelyingPartyContextLookupStrategy()Get the strategy used to locate theRelyingPartyContext
associated with a givenMessageContext
.- Returns:
- lookup strategy
-