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 of
CriteriaRelyingPartyConfigurationResolver
which delegates to an instance of
RelyingPartyConfigurationResolver
.
One of the following input criteria is required for resolution based on relying party entityID:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe RelyingPartyConfigurationResolver to which to delegate.private org.slf4j.Logger
Logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ProfileRequestContext
buildContext
(CriteriaSet criteria) Build and populate the synthetic instance ofProfileRequestContext
which will be passed in the resolution call to the delegate.protected void
protected void
getDefaultSecurityConfiguration
(String profileId) Return the default security configuration for the profile.resolve
(CriteriaSet criteria) private EntityDescriptor
resolveEntityDescriptor
(CriteriaSet criteria) Resolve the EntityDescriptor from the criteria.private String
resolveEntityID
(CriteriaSet criteria) Resolve the entityID from the criteria.private RoleDescriptor
resolveRoleDescriptor
(CriteriaSet criteria) Resolve the RoleDescriptor from the criteria.resolveSingle
(CriteriaSet criteria) void
setDelegate
(RelyingPartyConfigurationResolver resolver) Set theRelyingPartyConfigurationResolver
instance to which to delegate.void
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 Details
-
log
@Nonnull private org.slf4j.Logger logLogger. -
delegate
The RelyingPartyConfigurationResolver to which to delegate.
-
-
Constructor Details
-
DelegatingCriteriaRelyingPartyConfigurationResolver
public DelegatingCriteriaRelyingPartyConfigurationResolver()Constructor.
-
-
Method Details
-
setDelegate
Set theRelyingPartyConfigurationResolver
instance to which to delegate.- Parameters:
resolver
- the resolver delegate instance
-
setId
- Specified by:
setId
in interfaceIdentifiableComponent
- Overrides:
setId
in classAbstractIdentifiedInitializableComponent
-
doInitialize
- Overrides:
doInitialize
in classAbstractIdentifiedInitializableComponent
- Throws:
ComponentInitializationException
-
doDestroy
protected void doDestroy()- Overrides:
doDestroy
in classAbstractInitializableComponent
-
getDefaultSecurityConfiguration
@Nullable public SecurityConfiguration getDefaultSecurityConfiguration(@Nonnull @NotEmpty String profileId) Return the default security configuration for the profile.- Specified by:
getDefaultSecurityConfiguration
in 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:
resolveSingle
in interfaceResolver<RelyingPartyConfiguration,
CriteriaSet> - Throws:
ResolverException
-
resolve
@Nonnull @NonnullElements public Iterable<RelyingPartyConfiguration> resolve(@Nullable CriteriaSet criteria) throws ResolverException - Specified by:
resolve
in interfaceResolver<RelyingPartyConfiguration,
CriteriaSet> - Throws:
ResolverException
-
buildContext
Build and populate the synthetic instance ofProfileRequestContext
which 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
Resolve the entityID from the criteria.- Parameters:
criteria
- the input criteria- Returns:
- the input entityID criterion or null if could not be resolved
-
resolveEntityDescriptor
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
Resolve the RoleDescriptor from the criteria.- Parameters:
criteria
- the input criteria- Returns:
- the input role descriptor criterion or null if could not be resolved
-