Class CriteriaSelfEntityIDResolver
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.attribute.resolver.dc.saml.plugin.impl.CriteriaSelfEntityIDResolver
- All Implemented Interfaces:
SelfEntityIDResolver,Component,DestructableComponent,InitializableComponent
public class CriteriaSelfEntityIDResolver
extends AbstractInitializableComponent
implements SelfEntityIDResolver
An implementation of
SelfEntityIDResolver which uses a delegated resolver
based on an input CriteriaSet.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.slf4j.LoggerLogger.private Resolver<String,CriteriaSet> Resolver for the self entityID, based on the peer entity data. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGet the resolver for the self entityID.resolve(AttributeResolutionContext resolutionContext, Map<String, List<IdPAttributeValue>> dependencyAttributes, AttributeAuthorityDescriptor roleDescriptor) Resolve the self entity ID to use in query.voidsetSelfEntityIDResolver(Resolver<String, CriteriaSet> resolver) Set the resolver for the self entityID.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logLogger. -
selfEntityIDResolver
Resolver for the self entityID, based on the peer entity data.
-
-
Constructor Details
-
CriteriaSelfEntityIDResolver
public CriteriaSelfEntityIDResolver()
-
-
Method Details
-
getSelfEntityIDResolver
Get the resolver for the self entityID.- Returns:
- the resolver
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
resolve
@Nullable public String resolve(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull Map<String, List<IdPAttributeValue>> dependencyAttributes, @Nonnull AttributeAuthorityDescriptor roleDescriptor) throws ResolutionExceptionResolve the self entity ID to use in query.- Specified by:
resolvein interfaceSelfEntityIDResolver- Parameters:
resolutionContext- the attribute resolution context in effect for the querydependencyAttributes- the dependency attributes in effect for the queryroleDescriptor- the attribute authority role descriptor for the query- Returns:
- the entity ID, may be null
- Throws:
ResolutionException- if there is a fatal error during processing
-