Class AttributeValueLookupFunction
- java.lang.Object
-
- net.shibboleth.idp.consent.logic.impl.AttributeValueLookupFunction
-
- All Implemented Interfaces:
Function<ProfileRequestContext,String>,ContextDataLookupFunction<ProfileRequestContext,String>
public class AttributeValueLookupFunction extends Object implements ContextDataLookupFunction<ProfileRequestContext,String>
ContextDataLookupFunctionto return the value of an attribute from anAttributeContext.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,AttributeContext>attributeContextLookupStrategyStrategy used to find theAttributeContextfrom theProfileRequestContext.private StringattributeIdThe attribute ID to look for.private org.slf4j.LoggerlogClass logger.private booleanuseUnfilteredAttributesWhether to use filtered or unfiltered attributes.
-
Constructor Summary
Constructors Constructor Description AttributeValueLookupFunction(String userAttributeId)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringapply(ProfileRequestContext input)voidsetAttributeContextLookupStrategy(Function<ProfileRequestContext,AttributeContext> strategy)Set the attribute context lookup strategy.voidsetUseUnfilteredAttributes(boolean flag)Set whether to use filtered or unfiltered attributes.
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
attributeContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,AttributeContext> attributeContextLookupStrategy
Strategy used to find theAttributeContextfrom theProfileRequestContext.
-
useUnfilteredAttributes
private boolean useUnfilteredAttributes
Whether to use filtered or unfiltered attributes.
-
-
Method Detail
-
setAttributeContextLookupStrategy
public void setAttributeContextLookupStrategy(@Nonnull Function<ProfileRequestContext,AttributeContext> strategy)Set the attribute context lookup strategy.- Parameters:
strategy- the attribute context lookup strategy
-
setUseUnfilteredAttributes
public void setUseUnfilteredAttributes(boolean flag)
Set whether to use filtered or unfiltered attributes.Defaults to true.
- Parameters:
flag- flag to set
-
apply
@Nullable public String apply(@Nullable ProfileRequestContext input)
- Specified by:
applyin interfaceFunction<ProfileRequestContext,String>
-
-