Class DurationConfigurationLookupStrategy
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.attribute.config.AbstractMetadataDrivenConfigurationLookupStrategy<Duration>
net.shibboleth.idp.attribute.config.DurationConfigurationLookupStrategy
- All Implemented Interfaces:
Function<BaseContext,,Duration> Component,DestructableComponent,InitializableComponent
public class DurationConfigurationLookupStrategy
extends AbstractMetadataDrivenConfigurationLookupStrategy<Duration>
A strategy function that examines SAML metadata associated with a relying party and derives Long-valued
configuration settings that are durations, 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
FieldsModifier and TypeFieldDescriptionConverter to handle duration strings.private static final org.slf4j.LoggerClass logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DurationdoTranslate(IdPAttribute tag) Translate the value(s) into a setting of the appropriate type.protected DurationdoTranslate(Attribute tag) Translate the value(s) into a setting of the appropriate type.private DurationxmlObjectToDuration(XMLObject object) Convert an XMLObject to a Long based on a duration 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, setStrictNameFormatMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
LOG
@Nonnull private static final org.slf4j.Logger LOGClass logger. -
durationConverter
Converter to handle duration strings.
-
-
Constructor Details
-
DurationConfigurationLookupStrategy
public DurationConfigurationLookupStrategy()Constructor.
-
-
Method Details
-
doTranslate
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:
doTranslatein classAbstractMetadataDrivenConfigurationLookupStrategy<Duration>- Parameters:
tag- tag to translate- Returns:
- the setting derived from the tag's value(s)
-
doTranslate
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:
doTranslatein classAbstractMetadataDrivenConfigurationLookupStrategy<Duration>- Parameters:
tag- tag to translate- Returns:
- the setting derived from the tag's value(s)
-
xmlObjectToDuration
Convert an XMLObject to a Long based on a duration if the type is supported.- Parameters:
object- object to convert- Returns:
- the converted value, or null
-