Class AbstractRelyingPartyLookupFunction<ResultType>
java.lang.Object
net.shibboleth.idp.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:
HttpClientSecurityConfigurationLookupFunction
,SAMLMetadataContextLookupFunction
,SignatureSigningConfigurationLookupFunction
,SignatureValidationConfigurationLookupFunction
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
Fields Modifier and Type Field Description private Function<MessageContext,ProfileRequestContext>
profileRequestContextLookupStrategy
Strategy used to locate theProfileRequestContext
associated with a givenMessageContext
.private Function<MessageContext,RelyingPartyContext>
relyingPartyContextLookupStrategy
Strategy used to locate theRelyingPartyContext
associated with a givenMessageContext
. -
Constructor Summary
Constructors Constructor Description AbstractRelyingPartyLookupFunction()
Constructor. -
Method Summary
Modifier and Type Method Description Function<MessageContext,ProfileRequestContext>
getProfileRequestContextLookupStrategy()
Get the strategy used to locate theProfileRequestContext
associated with a givenMessageContext
.Function<MessageContext,RelyingPartyContext>
getRelyingPartyContextLookupStrategy()
Get the strategy used to locate theRelyingPartyContext
associated with a givenMessageContext
.void
setProfileRequestContextLookupStrategy(Function<MessageContext,ProfileRequestContext> strategy)
Set the strategy used to locate theProfileRequestContext
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
. -
profileRequestContextLookupStrategy
@Nonnull private Function<MessageContext,ProfileRequestContext> profileRequestContextLookupStrategyStrategy used to locate theProfileRequestContext
associated with a givenMessageContext
.
-
-
Constructor Details
-
AbstractRelyingPartyLookupFunction
public AbstractRelyingPartyLookupFunction()Constructor.
-
-
Method Details
-
getRelyingPartyContextLookupStrategy
@Nonnull public Function<MessageContext,RelyingPartyContext> getRelyingPartyContextLookupStrategy()Get the strategy used to locate theRelyingPartyContext
associated with a givenMessageContext
.- Returns:
- lookup strategy
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<MessageContext,RelyingPartyContext> strategy)Set the strategy used to locate theRelyingPartyContext
associated with a givenMessageContext
.- Parameters:
strategy
- lookup strategy
-
getProfileRequestContextLookupStrategy
@Nonnull public Function<MessageContext,ProfileRequestContext> getProfileRequestContextLookupStrategy()Get the strategy used to locate theProfileRequestContext
associated with a givenMessageContext
.- Returns:
- lookup strategy
-
setProfileRequestContextLookupStrategy
public void setProfileRequestContextLookupStrategy(@Nonnull Function<MessageContext,ProfileRequestContext> strategy)Set the strategy used to locate theProfileRequestContext
associated with a givenMessageContext
.- Parameters:
strategy
- lookup strategy
-