Class AbstractAttributeResolutionLookupFunction<Type>
java.lang.Object
net.shibboleth.idp.attribute.resolver.context.navigate.AbstractAttributeResolutionLookupFunction<Type>
- Type Parameters:
Type- the type of data returned by the function
- All Implemented Interfaces:
Function<ProfileRequestContext,,Type> ContextDataLookupFunction<ProfileRequestContext,Type>
- Direct Known Subclasses:
AttributeIssuerIdLookupFunction,AttributePrincipalLookupFunction,AttributeRecipientIdLookupFunction,ResolutionLabelLookupFunction
public abstract class AbstractAttributeResolutionLookupFunction<Type>
extends Object
implements ContextDataLookupFunction<ProfileRequestContext,Type>
Base class for a function that takes a
ProfileRequestContext and requires access to an
AttributeResolutionContext.-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy used to locate theAttributeResolutionContextassociated with a givenProfileRequestContext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ProfileRequestContext input) protected abstract TypeMethod that performs eventual lookup of target data.voidsetAttributeResolutionContextLookupStrategy(Function<ProfileRequestContext, AttributeResolutionContext> strategy) Sets the strategy used to locate theAttributeResolutionContextassociated with a givenProfileRequestContext.
-
Field Details
-
attributeResolutionContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,AttributeResolutionContext> attributeResolutionContextLookupStrategyStrategy used to locate theAttributeResolutionContextassociated with a givenProfileRequestContext.
-
-
Constructor Details
-
AbstractAttributeResolutionLookupFunction
public AbstractAttributeResolutionLookupFunction()Constructor.
-
-
Method Details
-
setAttributeResolutionContextLookupStrategy
public void setAttributeResolutionContextLookupStrategy(@Nonnull Function<ProfileRequestContext, AttributeResolutionContext> strategy) Sets the strategy used to locate theAttributeResolutionContextassociated with a givenProfileRequestContext.- Parameters:
strategy- strategy used to locate theAttributeResolutionContextassociated with a givenProfileRequestContext
-
apply
- Specified by:
applyin interfaceFunction<ProfileRequestContext,Type>
-
doApply
Method that performs eventual lookup of target data.- Parameters:
input- the context to examine- Returns:
- the data to return
-