Class AbstractCollectionConfigurationLookupStrategy<T1,T2>
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.idp.saml.profile.config.AbstractMetadataDrivenConfigurationLookupStrategy<T2>
net.shibboleth.idp.saml.profile.config.AbstractCollectionConfigurationLookupStrategy<T1,T2>
- Type Parameters:
T1
- type of collection memberT2
- type of collection itself
- All Implemented Interfaces:
Function<BaseContext,
,T2> Component
,DestructableComponent
,InitializableComponent
- Direct Known Subclasses:
ListConfigurationLookupStrategy
,SetConfigurationLookupStrategy
public abstract class AbstractCollectionConfigurationLookupStrategy<T1,T2>
extends AbstractMetadataDrivenConfigurationLookupStrategy<T2>
A strategy function that examines SAML metadata associated with a relying party and derives List<String>-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
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.Logger
Class logger.Type of bean in collection. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected T1
createInstanceFromString
(String input) Helper method to manufacture instance of object using a string constructor or a cast.protected void
Get the type of object to coerce collection elements into.void
setPropertyType
(Class<T1> type) Set the type of object to coerce collection elements into.protected String
xmlObjectToString
(XMLObject object) Convert an XMLObject to a String if the type is supported.Methods inherited from class net.shibboleth.idp.saml.profile.config.AbstractMetadataDrivenConfigurationLookupStrategy
apply, doTranslate, doTranslate, 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. -
propertyType
Type of bean in collection.
-
-
Constructor Details
-
AbstractCollectionConfigurationLookupStrategy
public AbstractCollectionConfigurationLookupStrategy()
-
-
Method Details
-
getPropertyType
Get the type of object to coerce collection elements into.- Returns:
- object type
-
setPropertyType
Set the type of object to coerce collection elements into.- Parameters:
type
- object type
-
doInitialize
- Overrides:
doInitialize
in classAbstractMetadataDrivenConfigurationLookupStrategy<T2>
- Throws:
ComponentInitializationException
-
createInstanceFromString
protected T1 createInstanceFromString(@Nonnull @NotEmpty String input) throws ReflectiveOperationException Helper method to manufacture instance of object using a string constructor or a cast.- Parameters:
input
- the input string- Returns:
- the new object or the existing object if casting is possible
- Throws:
ReflectiveOperationException
- if the attempt fails
-
xmlObjectToString
Convert an XMLObject to a String if the type is supported.- Parameters:
object
- object to convert- Returns:
- the converted value, or null
-