Class ChainingAuthorityEntityIDResolver
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.attribute.resolver.dc.saml.plugin.impl.ChainingAuthorityEntityIDResolver
- All Implemented Interfaces:
AttributeAuthorityEntityIDResolver,Component,DestructableComponent,InitializableComponent
public class ChainingAuthorityEntityIDResolver
extends AbstractInitializableComponent
implements AttributeAuthorityEntityIDResolver
An implementation of
AttributeAuthorityEntityIDResolver which implements a chain-of-responsibility pattern
using a list of configured resolvers.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerLogger.private List<AttributeAuthorityEntityIDResolver>List of chain members. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGet the list of chain members.resolve(AttributeResolutionContext resolutionContext, Map<String, List<IdPAttributeValue>> dependencyAttributes) Resolve the entity ID of the attribute authority to use in query.voidSet the list of chain members.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logLogger. -
resolvers
List of chain members.
-
-
Constructor Details
-
ChainingAuthorityEntityIDResolver
public ChainingAuthorityEntityIDResolver()
-
-
Method Details
-
getResolvers
@NotLive @Unmodifiable @NonnullAfterInit public List<AttributeAuthorityEntityIDResolver> getResolvers()Get the list of chain members.- Returns:
- the list of chain members
-
setResolvers
Set the list of chain members.- Parameters:
chain- the chain of members
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
resolve
@Nullable public String resolve(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull Map<String, List<IdPAttributeValue>> dependencyAttributes) throws ResolutionExceptionResolve the entity ID of the attribute authority to use in query.- Specified by:
resolvein interfaceAttributeAuthorityEntityIDResolver- Parameters:
resolutionContext- the attribute resolution context in effect for the querydependencyAttributes- the dependency attributes in effect for the query- Returns:
- the entity ID, may be null
- Throws:
ResolutionException- if there is a fatal error during processing
-