Class AttributeDisplayDescriptionFunction

  • All Implemented Interfaces:
    Function<net.shibboleth.idp.attribute.IdPAttribute,​String>

    public class AttributeDisplayDescriptionFunction
    extends AbstractAttributeDisplayFunction
    Function which returns the locale-aware display description of an attribute, defaulting to the attribute ID if the attribute has no display description.
    • Constructor Detail

      • AttributeDisplayDescriptionFunction

        public AttributeDisplayDescriptionFunction​(@Nonnull
                                                   javax.servlet.http.HttpServletRequest request,
                                                   @Nullable
                                                   List<String> defaultLangauages)
        Constructor.
        Parameters:
        request - HttpServletRequest used to get preferred languages
        defaultLangauages - list of fallback languages in order of decreasing preference
    • Method Detail

      • getDisplayInfo

        @Nonnull
        protected Map<Locale,​String> getDisplayInfo​(@Nonnull
                                                          net.shibboleth.idp.attribute.IdPAttribute attribute)
        Get the information to be displayed from the attribute.
        Specified by:
        getDisplayInfo in class AbstractAttributeDisplayFunction
        Parameters:
        attribute - the attribute to consider
        Returns:
        the map of locale dependent information to be displayed