Class AbstractRelyingPartyLookupFunction<ResultType>
java.lang.Object
net.shibboleth.profile.context.navigate.AbstractRelyingPartyLookupFunction<ResultType>
- Type Parameters:
ResultType- return type of function
- All Implemented Interfaces:
Function<ProfileRequestContext,,ResultType> ContextDataLookupFunction<ProfileRequestContext,ResultType>
- Direct Known Subclasses:
AbstractDefaultSecurityConfigurationLookupFunction,AssertionAudiencesLookupFunction,AssertionLifetimeLookupFunction,AudienceRestrictionsLookupFunction,IssuerLookupFunction,MaximumTimeSinceAuthnLookupFunction,ProxyCountLookupFunction,QualifiedNameIDFormatsLookupFunction,RelyingPartyIdLookupFunction,SAMLMetadataContextLookupFunction
public abstract class AbstractRelyingPartyLookupFunction<ResultType>
extends Object
implements ContextDataLookupFunction<ProfileRequestContext,ResultType>
Abstract base class for a function that requires a
RelyingPartyContext
obtained via a lookup function, by default a child of the ProfileRequestContext.-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RelyingPartyContextInvokes the installed lookup function to locate theRelyingPartyContext.Get the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.voidSet the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.
-
Field Details
-
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategyStrategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.
-
-
Constructor Details
-
AbstractRelyingPartyLookupFunction
public AbstractRelyingPartyLookupFunction()Constructor.
-
-
Method Details
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext, RelyingPartyContext> strategy) Set the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.- Parameters:
strategy- lookup strategy
-
getRelyingPartyContextLookupStrategy
@Nonnull public Function<ProfileRequestContext,RelyingPartyContext> getRelyingPartyContextLookupStrategy()Get the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.- Returns:
- lookup strategy
-
getRelyingPartyContext
@Nullable protected RelyingPartyContext getRelyingPartyContext(@Nullable ProfileRequestContext input) Invokes the installed lookup function to locate theRelyingPartyContext.- Parameters:
input- profile request context- Returns:
- the
RelyingPartyContextor null
-