Class BooleanConfigurationLookupStrategy

All Implemented Interfaces:
Function<BaseContext,​Boolean>, Component, DestructableComponent, InitializableComponent

public class BooleanConfigurationLookupStrategy
extends AbstractMetadataDrivenConfigurationLookupStrategy<Boolean>
A strategy function that examines SAML metadata associated with a relying party and derives Boolean-valued configuration settings based on EntityAttribute extension tags.
Since:
3.4.0
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
  • Constructor Details

    • BooleanConfigurationLookupStrategy

      public BooleanConfigurationLookupStrategy()
  • Method Details

    • doTranslate

      @Nullable protected Boolean doTranslate​(@Nonnull IdPAttribute tag)
      Translate the value(s) into a setting of the appropriate type.

      Overrides of this function can assume a non-zero collection of values.

      Specified by:
      doTranslate in class AbstractMetadataDrivenConfigurationLookupStrategy<Boolean>
      Parameters:
      tag - tag to translate
      Returns:
      the setting derived from the tag's value(s)
    • doTranslate

      @Nullable protected Boolean doTranslate​(@Nonnull Attribute tag)
      Translate the value(s) into a setting of the appropriate type.

      Overrides of this function can assume a non-zero collection of values.

      Specified by:
      doTranslate in class AbstractMetadataDrivenConfigurationLookupStrategy<Boolean>
      Parameters:
      tag - tag to translate
      Returns:
      the setting derived from the tag's value(s)
    • xmlObjectToBoolean

      @Nullable private Boolean xmlObjectToBoolean​(@Nonnull XMLObject object)
      Convert an XMLObject to a Boolean if the type is supported.
      Parameters:
      object - object to convert
      Returns:
      the converted value, or null