Class AbstractRelyingPartyLookupFunction<ResultType>
java.lang.Object
net.shibboleth.profile.context.navigate.messaging.AbstractRelyingPartyLookupFunction<ResultType>
- Type Parameters:
ResultType- return type of function
- All Implemented Interfaces:
Function<MessageContext,,ResultType> ContextDataLookupFunction<MessageContext,ResultType>
- Direct Known Subclasses:
AbstractDefaultSecurityConfigurationLookupFunction,MessageHandlerLookupFunction,SAMLMetadataContextLookupFunction
public abstract class AbstractRelyingPartyLookupFunction<ResultType>
extends Object
implements ContextDataLookupFunction<MessageContext,ResultType>
Abstract base class for a function that requires a
ProfileRequestContext obtained
via a lookup function, by default the parent of the specified MessageContext, and
a RelyingPartyContext obtained via a lookup function, by default a child of the
aforementioned parent.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<MessageContext,ProfileRequestContext> Strategy used to locate theProfileRequestContextassociated with a givenMessageContext.private Function<MessageContext,RelyingPartyContext> Strategy used to locate theRelyingPartyContextassociated with a givenMessageContext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ProfileRequestContextReturn the result of applying the lookup function to obtain theProfileRequestContext.Get the strategy used to locate theProfileRequestContextassociated with a givenMessageContext.protected 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 theProfileRequestContextassociated with a givenMessageContext.voidSet the strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.
-
Field Details
-
relyingPartyContextLookupStrategy
Strategy used to locate theRelyingPartyContextassociated with a givenMessageContext. -
profileRequestContextLookupStrategy
Strategy used to locate theProfileRequestContextassociated with a givenMessageContext.
-
-
Constructor Details
-
AbstractRelyingPartyLookupFunction
public AbstractRelyingPartyLookupFunction()Constructor.
-
-
Method Details
-
getRelyingPartyContextLookupStrategy
Get the strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.- Returns:
- lookup strategy
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<MessageContext, RelyingPartyContext> strategy) Set the strategy used to locate theRelyingPartyContextassociated with a givenMessageContext.- Parameters:
strategy- lookup strategy
-
getProfileRequestContextLookupStrategy
@Nonnull public Function<MessageContext,ProfileRequestContext> getProfileRequestContextLookupStrategy()Get the strategy used to locate theProfileRequestContextassociated with a givenMessageContext.- Returns:
- lookup strategy
-
setProfileRequestContextLookupStrategy
public void setProfileRequestContextLookupStrategy(@Nonnull Function<MessageContext, ProfileRequestContext> strategy) Set the strategy used to locate theProfileRequestContextassociated with a givenMessageContext.- Parameters:
strategy- lookup strategy
-
getRelyingPartyContext
Return the result of applying the lookup function to obtain theRelyingPartyContext.- Parameters:
input- message context- Returns:
- the
RelyingPartyContextor null
-
getProfileRequestContext
Return the result of applying the lookup function to obtain theProfileRequestContext.- Parameters:
input- message context- Returns:
- the
ProfileRequestContextor null
-