Class AttributeValueLookupFunction

  • All Implemented Interfaces:
    Function<org.opensaml.profile.context.ProfileRequestContext,​String>, org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.profile.context.ProfileRequestContext,​String>

    public class AttributeValueLookupFunction
    extends Object
    implements org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.profile.context.ProfileRequestContext,​String>
    ContextDataLookupFunction to return the value of an attribute from an AttributeContext.
    • Field Detail

      • log

        @Nonnull
        private final Logger log
        Class logger.
      • attributeId

        @Nonnull
        @NotEmpty
        private String attributeId
        The attribute ID to look for.
      • attributeContextLookupStrategy

        @Nonnull
        private Function<org.opensaml.profile.context.ProfileRequestContext,​net.shibboleth.idp.attribute.context.AttributeContext> attributeContextLookupStrategy
        Strategy used to find the AttributeContext from the ProfileRequestContext.
      • useUnfilteredAttributes

        private boolean useUnfilteredAttributes
        Whether to use filtered or unfiltered attributes.
    • Constructor Detail

      • AttributeValueLookupFunction

        public AttributeValueLookupFunction​(@Nonnull @NotEmpty
                                            String userAttributeId)
        Constructor.
        Parameters:
        userAttributeId - the attribute id
    • Method Detail

      • setAttributeContextLookupStrategy

        public void setAttributeContextLookupStrategy​(@Nonnull
                                                      Function<org.opensaml.profile.context.ProfileRequestContext,​net.shibboleth.idp.attribute.context.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
                            org.opensaml.profile.context.ProfileRequestContext input)
        Specified by:
        apply in interface Function<org.opensaml.profile.context.ProfileRequestContext,​String>