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 Details

  • Constructor Details

    • AttributeValueLookupFunction

      public AttributeValueLookupFunction​(@Nonnull @NotEmpty String userAttributeId)
      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

      @Nullable public String apply​(@Nullable ProfileRequestContext input)
      Specified by:
      apply in interface Function<ProfileRequestContext,​String>