Class AbstractRelyingPartyPredicate
java.lang.Object
net.shibboleth.profile.context.logic.AbstractRelyingPartyPredicate
- All Implemented Interfaces:
Predicate<ProfileRequestContext>
- Direct Known Subclasses:
CheckAddressPredicate,DetailedErrorsPredicate,IgnoreRequestSignaturesPredicate,LoopDetectionPredicate,NotBeforeProfileConfigPredicate,ResolveAttributesPredicate,SignAssertionsPredicate,SignRequestsPredicate,SignResponsesPredicate,VerifiedProfilePredicate
public abstract class AbstractRelyingPartyPredicate
extends Object
implements Predicate<ProfileRequestContext>
Base class for a predicate that evaluates a
ProfileRequestContext and requires access to a
RelyingPartyContext.-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy function to lookup RelyingPartyContext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RelyingPartyContextReturns the result of evaluating the injected lookup strategy to obtain theRelyingPartyContext.Get the lookup strategy to use to locate theRelyingPartyContext.voidSet the lookup strategy to use to locate theRelyingPartyContext.
-
Field Details
-
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategyStrategy function to lookup RelyingPartyContext.
-
-
Constructor Details
-
AbstractRelyingPartyPredicate
public AbstractRelyingPartyPredicate()Constructor.
-
-
Method Details
-
getRelyingPartyContextLookupStrategy
@Nonnull public Function<ProfileRequestContext,RelyingPartyContext> getRelyingPartyContextLookupStrategy()Get the lookup strategy to use to locate theRelyingPartyContext.- Returns:
- lookup function to use
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext, RelyingPartyContext> strategy) Set the lookup strategy to use to locate theRelyingPartyContext.- Parameters:
strategy- lookup function to use
-
getRelyingPartyContext
@Nullable protected RelyingPartyContext getRelyingPartyContext(@Nullable ProfileRequestContext input) Returns the result of evaluating the injected lookup strategy to obtain theRelyingPartyContext.- Parameters:
input- current profile request context- Returns:
- the
RelyingPartyContextor null
-