Class AttributeResolverServiceStrategy
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.attribute.resolver.spring.impl.AttributeResolverServiceStrategy
- All Implemented Interfaces:
Function<ApplicationContext,,ServiceableComponent<AttributeResolver>> Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class AttributeResolverServiceStrategy
extends AbstractIdentifiableInitializableComponent
implements Function<ApplicationContext,ServiceableComponent<AttributeResolver>>
Strategy for summoning up an
AttributeResolverImpl from a populated ApplicationContext. We do this by
finding all the configured AttributeDefinition and DataConnector beans and bunging them into the
Attribute Resolver which we then initialize.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private booleanWhether to strip null attribute values.private booleanWhether to attach DisplayInfo to attributes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ApplicationContext appContext) booleanDo we strip nulls from attribute values.booleanDo we allow addition of Display Information?voidsetStripNulls(boolean doStripNulls) Sets whether to strip nulls from attribute values.voidsetSuppressDisplayInformation(boolean what) Deprecated, for removal: This API element is subject to removal in a future version.Display Information should be consulted at point of useMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
doInitialize, getIdMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
stripNulls
private boolean stripNullsWhether to strip null attribute values. -
suppressDisplayInformation
private boolean suppressDisplayInformationWhether to attach DisplayInfo to attributes.
-
-
Constructor Details
-
AttributeResolverServiceStrategy
public AttributeResolverServiceStrategy()
-
-
Method Details
-
isStripNulls
public boolean isStripNulls()Do we strip nulls from attribute values.- Returns:
- Returns whether to strip nulls from attribute values
-
setStripNulls
public void setStripNulls(boolean doStripNulls) Sets whether to strip nulls from attribute values.- Parameters:
doStripNulls- what to set
-
isSuppressDisplayInformation
public boolean isSuppressDisplayInformation()Do we allow addition of Display Information?- Returns:
- whether we are suppressing
-
setSuppressDisplayInformation
Deprecated, for removal: This API element is subject to removal in a future version.Display Information should be consulted at point of useSet whether we suppress addition of Display Information.- Parameters:
what- true if we suppress the addition.
-
apply
@Nullable public ServiceableComponent<AttributeResolver> apply(@Nullable ApplicationContext appContext) - Specified by:
applyin interfaceFunction<ApplicationContext,ServiceableComponent<AttributeResolver>>
-