Class DurationConfigurationLookupStrategy
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.idp.saml.profile.config.AbstractMetadataDrivenConfigurationLookupStrategy<Duration>
-
- net.shibboleth.idp.saml.profile.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:
- 3.4.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.shibboleth.idp.saml.profile.config.AbstractMetadataDrivenConfigurationLookupStrategy
AbstractMetadataDrivenConfigurationLookupStrategy.CachedConfigurationContext
-
-
Field Summary
Fields Modifier and Type Field Description private Converter<String,Duration>durationConverterConverter to handle duration strings.private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description DurationConfigurationLookupStrategy()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.saml.profile.config.AbstractMetadataDrivenConfigurationLookupStrategy
apply, doInitialize, setDefaultValue, setDefaultValueStrategy, setEnableCaching, setExplicitPropertyName, setIgnoreUnmappedEntityAttributes, setMetadataLookupStrategy, setProfileAliases, setProfileIdLookupStrategy, setPropertyName, setStrictNameFormat
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
-
-
-
Method Detail
-
doTranslate
@Nullable protected Duration 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:
doTranslatein classAbstractMetadataDrivenConfigurationLookupStrategy<Duration>- Parameters:
tag- tag to translate- Returns:
- the setting derived from the tag's value(s)
-
doTranslate
@Nullable protected Duration 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:
doTranslatein classAbstractMetadataDrivenConfigurationLookupStrategy<Duration>- Parameters:
tag- tag to translate- Returns:
- the setting derived from the tag's value(s)
-
-