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
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Class<T1>propertyTypeType of bean in collection.
-
Constructor Summary
Constructors Constructor Description AbstractCollectionConfigurationLookupStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T1createInstanceFromString(String input)Helper method to manufacture instance of object using a string constructor or a cast.protected voiddoInitialize()Class<T1>getPropertyType()Get the type of object to coerce collection elements into.voidsetPropertyType(Class<T1> type)Set the type of object to coerce collection elements into.protected StringxmlObjectToString(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 Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
propertyType
@NonnullAfterInit private Class<T1> propertyType
Type of bean in collection.
-
-
Method Detail
-
getPropertyType
@NonnullAfterInit public Class<T1> getPropertyType()
Get the type of object to coerce collection elements into.- Returns:
- object type
-
setPropertyType
public void setPropertyType(@Nonnull Class<T1> type)Set the type of object to coerce collection elements into.- Parameters:
type- object type
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein 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
-
-