Class DoubleConfigurationLookupStrategy
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.attribute.config.AbstractMetadataDrivenConfigurationLookupStrategy<Double>
net.shibboleth.idp.attribute.config.DoubleConfigurationLookupStrategy
- All Implemented Interfaces:
Function<BaseContext,,Double> Component,DestructableComponent,InitializableComponent
public class DoubleConfigurationLookupStrategy
extends AbstractMetadataDrivenConfigurationLookupStrategy<Double>
A strategy function that examines SAML metadata associated with a relying party and derives Double-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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DoubledoTranslate(IdPAttribute tag) Translate the value(s) into a setting of the appropriate type.protected DoubledoTranslate(Attribute tag) Translate the value(s) into a setting of the appropriate type.private DoublexmlObjectToDouble(XMLObject object) Convert an XMLObject to a Double 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.
-
-
Constructor Details
-
DoubleConfigurationLookupStrategy
public DoubleConfigurationLookupStrategy()
-
-
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<Double>- 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<Double>- Parameters:
tag- tag to translate- Returns:
- the setting derived from the tag's value(s)
-
xmlObjectToDouble
Convert an XMLObject to a Double if the type is supported.- Parameters:
object- object to convert- Returns:
- the converted value, or null
-