Package net.shibboleth.idp.attribute.config

# Class LongConfigurationLookupStrategy

java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.attribute.config.AbstractMetadataDrivenConfigurationLookupStrategy<Long>
net.shibboleth.idp.attribute.config.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

## Nested Class Summary

## Nested classes/interfaces inherited from class net.shibboleth.idp.attribute.config.AbstractMetadataDrivenConfigurationLookupStrategy

`AbstractMetadataDrivenConfigurationLookupStrategy.CachedConfigurationContext`

## Field Summary

Fields
Modifier and Type
Field
Description
`private static final org.slf4j.Logger`
`LOG`
Class logger.

## Constructor Summary

Constructors
Constructor
Description
`LongConfigurationLookupStrategy()`

## Method Summary

Modifier and Type
Method
Description
`protected Long`
`doTranslate(IdPAttribute tag)`
Translate the value(s) into a setting of the appropriate type.
`protected Long`
`doTranslate(Attribute tag)`
Translate the value(s) into a setting of the appropriate type.
`private Long`
`xmlObjectToLong(XMLObject object)`
Convert an XMLObject to a Long if the type is supported.

### Methods inherited from class net.shibboleth.idp.attribute.config.AbstractMetadataDrivenConfigurationLookupStrategy

`apply, doInitialize, setDefaultValue, setDefaultValueStrategy, setEnableCaching, setExplicitPropertyName, setIgnoreUnmappedEntityAttributes, setLegacyPropertyName, setMessageMetadataLookupStrategy, setProfileAliases, setProfileIdLookupStrategy, setProfileMetadataLookupStrategy, setPropertyName, setStrictNameFormat`

### Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent

`checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### Methods inherited from interface java.util.function.Function

`andThen, compose`

## 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