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>
ContextDataLookupFunction to return the value of an attribute from an AttributeContext.-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy used to find theAttributeContextfrom theProfileRequestContext.private StringThe attribute ID to look for.private final org.slf4j.LoggerClass logger.private booleanWhether to use filtered or unfiltered attributes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ProfileRequestContext input) voidSet the attribute context lookup strategy.voidsetUseUnfilteredAttributes(boolean flag) Set whether to use filtered or unfiltered attributes.
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
attributeId
The attribute ID to look for. -
attributeContextLookupStrategy
Strategy used to find theAttributeContextfrom theProfileRequestContext. -
useUnfilteredAttributes
private boolean useUnfilteredAttributesWhether to use filtered or unfiltered attributes.
-
-
Constructor Details
-
AttributeValueLookupFunction
Constructor.- Parameters:
userAttributeId- the attribute id
-
-
Method Details
-
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
- Specified by:
applyin interfaceFunction<ProfileRequestContext,String>
-