Class DelegatingCriteriaRelyingPartyConfigurationResolver
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
-
- net.shibboleth.idp.relyingparty.impl.DelegatingCriteriaRelyingPartyConfigurationResolver
-
- All Implemented Interfaces:
CriteriaRelyingPartyConfigurationResolver,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,Resolver<RelyingPartyConfiguration,CriteriaSet>
public class DelegatingCriteriaRelyingPartyConfigurationResolver extends AbstractIdentifiedInitializableComponent implements CriteriaRelyingPartyConfigurationResolver, IdentifiableComponent
An implementation ofCriteriaRelyingPartyConfigurationResolverwhich delegates to an instance ofRelyingPartyConfigurationResolver.One of the following input criteria is required for resolution based on relying party entityID:
-
-
Field Summary
Fields Modifier and Type Field Description private RelyingPartyConfigurationResolverdelegateThe RelyingPartyConfigurationResolver to which to delegate.private org.slf4j.LoggerlogLogger.
-
Constructor Summary
Constructors Constructor Description DelegatingCriteriaRelyingPartyConfigurationResolver()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ProfileRequestContextbuildContext(CriteriaSet criteria)Build and populate the synthetic instance ofProfileRequestContextwhich will be passed in the resolution call to the delegate.protected voiddoDestroy()protected voiddoInitialize()SecurityConfigurationgetDefaultSecurityConfiguration(String profileId)Return the default security configuration for the profile.Iterable<RelyingPartyConfiguration>resolve(CriteriaSet criteria)private EntityDescriptorresolveEntityDescriptor(CriteriaSet criteria)Resolve the EntityDescriptor from the criteria.private StringresolveEntityID(CriteriaSet criteria)Resolve the entityID from the criteria.private RoleDescriptorresolveRoleDescriptor(CriteriaSet criteria)Resolve the RoleDescriptor from the criteria.RelyingPartyConfigurationresolveSingle(CriteriaSet criteria)voidsetDelegate(RelyingPartyConfigurationResolver resolver)Set theRelyingPartyConfigurationResolverinstance to which to delegate.voidsetId(String componentId)-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
getId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
-
-
-
Field Detail
-
log
@Nonnull private org.slf4j.Logger log
Logger.
-
delegate
@NonnullAfterInit private RelyingPartyConfigurationResolver delegate
The RelyingPartyConfigurationResolver to which to delegate.
-
-
Method Detail
-
setDelegate
public void setDelegate(@Nullable RelyingPartyConfigurationResolver resolver)Set theRelyingPartyConfigurationResolverinstance to which to delegate.- Parameters:
resolver- the resolver delegate instance
-
setId
public void setId(@Nonnull String componentId)- Specified by:
setIdin interfaceIdentifiableComponent- Overrides:
setIdin classAbstractIdentifiedInitializableComponent
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
doDestroy
protected void doDestroy()
- Overrides:
doDestroyin classAbstractInitializableComponent
-
getDefaultSecurityConfiguration
@Nullable public SecurityConfiguration getDefaultSecurityConfiguration(@Nonnull @NotEmpty String profileId)
Return the default security configuration for the profile.- Specified by:
getDefaultSecurityConfigurationin interfaceCriteriaRelyingPartyConfigurationResolver- Parameters:
profileId- the profile ID (available viaIdentifiedComponent.getId()- Returns:
- the configured default configuration
-
resolveSingle
@Nullable public RelyingPartyConfiguration resolveSingle(@Nullable CriteriaSet criteria) throws ResolverException
- Specified by:
resolveSinglein interfaceResolver<RelyingPartyConfiguration,CriteriaSet>- Throws:
ResolverException
-
resolve
@Nonnull @NonnullElements public Iterable<RelyingPartyConfiguration> resolve(@Nullable CriteriaSet criteria) throws ResolverException
- Specified by:
resolvein interfaceResolver<RelyingPartyConfiguration,CriteriaSet>- Throws:
ResolverException
-
buildContext
@Nullable private ProfileRequestContext buildContext(@Nullable CriteriaSet criteria)
Build and populate the synthetic instance ofProfileRequestContextwhich will be passed in the resolution call to the delegate.- Parameters:
criteria- the input criteria- Returns:
- the synthetic context instance, or null if required data is not supplied
-
resolveEntityID
private String resolveEntityID(@Nonnull CriteriaSet criteria)
Resolve the entityID from the criteria.- Parameters:
criteria- the input criteria- Returns:
- the input entityID criterion or null if could not be resolved
-
resolveEntityDescriptor
private EntityDescriptor resolveEntityDescriptor(@Nonnull CriteriaSet criteria)
Resolve the EntityDescriptor from the criteria.- Parameters:
criteria- the input criteria- Returns:
- the input entity descriptor criterion, or null if could not be resolved
-
resolveRoleDescriptor
private RoleDescriptor resolveRoleDescriptor(@Nonnull CriteriaSet criteria)
Resolve the RoleDescriptor from the criteria.- Parameters:
criteria- the input criteria- Returns:
- the input role descriptor criterion or null if could not be resolved
-
-