Class IntegerConfigurationLookupStrategy

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

public class IntegerConfigurationLookupStrategy extends AbstractMetadataDrivenConfigurationLookupStrategy<Integer>
A strategy function that examines SAML metadata associated with a relying party and derives Integer-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

    • IntegerConfigurationLookupStrategy

      public IntegerConfigurationLookupStrategy()
  • Method Details

    • doTranslate

      @Nullable protected Integer 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<Integer>
      Parameters:
      tag - tag to translate
      Returns:
      the setting derived from the tag's value(s)
    • doTranslate

      @Nullable protected Integer 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<Integer>
      Parameters:
      tag - tag to translate
      Returns:
      the setting derived from the tag's value(s)
    • xmlObjectToInteger

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