Class AbstractRelyingPartyPredicate
java.lang.Object
net.shibboleth.profile.context.logic.messaging.AbstractRelyingPartyPredicate
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionprivate Function<MessageContext,RelyingPartyContext> Strategy used to locate theRelyingPartyContextassociated with a givenMessageContext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RelyingPartyContextReturn the result of applying the lookup function to obtain theRelyingPartyContext.Get the strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.voidSet the strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.
-
Field Details
-
relyingPartyContextLookupStrategy
Strategy used to locate theRelyingPartyContextassociated 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 theRelyingPartyContextassociated with a givenMessageContext.- Parameters:
strategy- lookup strategy
-
getRelyingPartyContextLookupStrategy
Get the strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.- Returns:
- lookup strategy
-
getRelyingPartyContext
Return the result of applying the lookup function to obtain theRelyingPartyContext.- Parameters:
input- message context- Returns:
- the
RelyingPartyContextor null
-