Class ReloadingRelyingPartyConfigurationResolver
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.relyingparty.impl.ReloadingRelyingPartyConfigurationResolver
- All Implemented Interfaces:
RelyingPartyConfigurationResolver,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,Resolver<RelyingPartyConfiguration,ProfileRequestContext>
public class ReloadingRelyingPartyConfigurationResolver
extends AbstractIdentifiableInitializableComponent
implements RelyingPartyConfigurationResolver
Retrieves a per-relying party configuration for a given profile request based on the request context. The
configuration is loaded via the supplied service.
Note that this resolver requires that none of the returned structures do any operations on receipt of
AbstractInitializableComponent.destroy() since the returned value is not covered by the
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private final ReloadableService<RelyingPartyConfigurationResolver>The service which managed the reloading. -
Constructor Summary
ConstructorsConstructorDescriptionReloadingRelyingPartyConfigurationResolver(ReloadableService<RelyingPartyConfigurationResolver> resolverService) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultSecurityConfiguration(String profileId) Return the default security configuration for the profile.resolve(ProfileRequestContext context) resolveSingle(ProfileRequestContext context) Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
doInitialize, getIdMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
service
The service which managed the reloading.
-
-
Constructor Details
-
ReloadingRelyingPartyConfigurationResolver
public ReloadingRelyingPartyConfigurationResolver(@Nonnull @ParameterName(name="resolverService") ReloadableService<RelyingPartyConfigurationResolver> resolverService) Constructor.- Parameters:
resolverService- the service which will manage the loading.
-
-
Method Details
-
resolve
@Nonnull @NonnullElements public Iterable<RelyingPartyConfiguration> resolve(@Nullable ProfileRequestContext context) throws ResolverException - Specified by:
resolvein interfaceResolver<RelyingPartyConfiguration,ProfileRequestContext> - Throws:
ResolverException
-
resolveSingle
@Nullable public RelyingPartyConfiguration resolveSingle(@Nullable ProfileRequestContext context) throws ResolverException - Specified by:
resolveSinglein interfaceResolver<RelyingPartyConfiguration,ProfileRequestContext> - Throws:
ResolverException
-
getDefaultSecurityConfiguration
Return the default security configuration for the profile.- Specified by:
getDefaultSecurityConfigurationin interfaceRelyingPartyConfigurationResolver- Parameters:
profileId- the profile ID (available viaIdentifiedComponent.getId()- Returns:
- the configured default configuration
-