Class LongConfigurationLookupStrategy

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

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

    • LOG

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

    • LongConfigurationLookupStrategy

      public LongConfigurationLookupStrategy()
  • Method Details

    • doTranslate

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

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

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