Class LongConfigurationLookupStrategy
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.idp.saml.profile.config.AbstractMetadataDrivenConfigurationLookupStrategy<Long>
net.shibboleth.idp.saml.profile.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:
- 3.4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class net.shibboleth.idp.saml.profile.config.AbstractMetadataDrivenConfigurationLookupStrategy
AbstractMetadataDrivenConfigurationLookupStrategy.CachedConfigurationContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.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
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
LongConfigurationLookupStrategy
public LongConfigurationLookupStrategy()
-
-
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:
doTranslate
in classAbstractMetadataDrivenConfigurationLookupStrategy<Long>
- 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:
doTranslate
in classAbstractMetadataDrivenConfigurationLookupStrategy<Long>
- Parameters:
tag
- tag to translate- Returns:
- the setting derived from the tag's value(s)
-
xmlObjectToLong
Convert an XMLObject to a Long if the type is supported.- Parameters:
object
- object to convert- Returns:
- the converted value, or null
-