Class SimpleAggregationSAMLDataConnector
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.attribute.resolver.AbstractResolverPlugin<Map<String,IdPAttribute>>
net.shibboleth.idp.attribute.resolver.AbstractDataConnector
net.shibboleth.idp.attribute.resolver.dc.saml.impl.SimpleAggregationSAMLDataConnector
- All Implemented Interfaces:
DataConnector,ResolverPlugin<Map<String,,IdPAttribute>> Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,UnmodifiableComponent,DisposableBean
A
DataConnector implementation which orchestrates calling SAMLDataConnector
for each of a resolved list of attribute authority entityIDs, and aggregates the resolved attribute data.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<AttributeAuthorityEntityIDSource>Sources of attribute authority entityIDs.private org.slf4j.LoggerLogger.private SAMLDataConnectorThe SAML Data Connector which performs the actual attribute resolution operations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,IdPAttribute> doDataConnectorResolve(AttributeResolutionContext resolutionContext, AttributeResolverWorkContext workContext) Retrieves a collection of attributes from some data source.protected voidGet the attribute authority entityID sources.Get theSAMLDataConnectorinstance to use.resolveAuthorityEntityIDs(AttributeResolutionContext resolutionContext, AttributeResolverWorkContext workContext) Resolve the attribute authority entityIDs to against which to query.voidSet the attribute authority entityID sources.voidsetQueryConnector(SAMLDataConnector connector) Set theSAMLDataConnectorinstance to use.Methods inherited from class net.shibboleth.idp.attribute.resolver.AbstractDataConnector
doResolve, getExportAttributes, getFailoverDataConnectorId, getLastFail, getLastSuccess, getLogPrefix, getNoRetryDelay, setExportAttributes, setFailoverDataConnectorId, setLastFail, setLastSuccess, setNoRetryDelayMethods inherited from class net.shibboleth.idp.attribute.resolver.AbstractResolverPlugin
doDestroy, equals, getActivationCondition, getAttributeDependencies, getDataConnectorDependencies, hashCode, isPropagateResolutionExceptions, resolve, setActivationCondition, setAttributeDependencies, setDataConnectorDependencies, setPropagateResolutionExceptionsMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.DestructableComponent
destroy, isDestroyedMethods inherited from interface org.springframework.beans.factory.DisposableBean
destroyMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitializedMethods inherited from interface net.shibboleth.idp.attribute.resolver.ResolverPlugin
getActivationCondition, getAttributeDependencies, getDataConnectorDependencies, isPropagateResolutionExceptions, resolve
-
Field Details
-
log
private org.slf4j.Logger logLogger. -
queryConnector
The SAML Data Connector which performs the actual attribute resolution operations. -
entityIDSources
Sources of attribute authority entityIDs.
-
-
Constructor Details
-
SimpleAggregationSAMLDataConnector
public SimpleAggregationSAMLDataConnector()
-
-
Method Details
-
getQueryConnector
Get theSAMLDataConnectorinstance to use.- Returns:
- the data connector instance
-
setQueryConnector
Set theSAMLDataConnectorinstance to use.- Parameters:
connector- the data connector instance
-
getEntityIDSources
Get the attribute authority entityID sources.- Returns:
- the entityID sources
-
setEntityIDSources
Set the attribute authority entityID sources.- Parameters:
sources- the attribute authority entityID sources
-
doInitialize
- Overrides:
doInitializein classAbstractDataConnector- Throws:
ComponentInitializationException
-
doDataConnectorResolve
@Nullable protected Map<String,IdPAttribute> doDataConnectorResolve(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull AttributeResolverWorkContext workContext) throws ResolutionException Retrieves a collection of attributes from some data source.- Specified by:
doDataConnectorResolvein classAbstractDataConnector- Parameters:
resolutionContext- current resolution contextworkContext- current resolver work context- Returns:
- collected attributes indexed by attribute ID
- Throws:
ResolutionException- thrown if there is a problem resolving the attributes
-
resolveAuthorityEntityIDs
@Nonnull protected List<String> resolveAuthorityEntityIDs(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull AttributeResolverWorkContext workContext) Resolve the attribute authority entityIDs to against which to query.- Parameters:
resolutionContext- current resolution contextworkContext- current resolver work context- Returns:
- the effective list of entityIDs to query
-