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
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private ReloadableService<RelyingPartyConfigurationResolver>serviceThe service which managed the reloading.
-
Constructor Summary
Constructors Constructor Description ReloadingRelyingPartyConfigurationResolver(ReloadableService<RelyingPartyConfigurationResolver> resolverService)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityConfigurationgetDefaultSecurityConfiguration(String profileId)Return the default security configuration for the profile.Iterable<RelyingPartyConfiguration>resolve(ProfileRequestContext context)RelyingPartyConfigurationresolveSingle(ProfileRequestContext context)-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
doInitialize, getId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, 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 final org.slf4j.Logger log
Class logger.
-
service
private final ReloadableService<RelyingPartyConfigurationResolver> service
The service which managed the reloading.
-
-
Constructor Detail
-
ReloadingRelyingPartyConfigurationResolver
public ReloadingRelyingPartyConfigurationResolver(@Nonnull @ParameterName(name="resolverService") ReloadableService<RelyingPartyConfigurationResolver> resolverService)
Constructor.- Parameters:
resolverService- the service which will manage the loading.
-
-
Method Detail
-
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
public SecurityConfiguration getDefaultSecurityConfiguration(String profileId)
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
-
-