Package net.shibboleth.sp.impl
Class DelegatingRelyingPartyConfiguration
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.profile.relyingparty.BasicRelyingPartyConfiguration
net.shibboleth.sp.impl.DelegatingRelyingPartyConfiguration
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,RelyingPartyConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
Subclass of
BasicRelyingPartyConfiguration that will handle absent settings
by delegating to an injected instance of Application.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ApplicationDelegation source.private booleanWhether to treat an empty profile configuration set as a valid outcome. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIssuer(ProfileRequestContext profileRequestContext) getProfileConfigurations(ProfileRequestContext profileRequestContext) getSecurityConfiguration(ProfileRequestContext profileRequestContext) voidSets theApplicationto delegate to.voidsetHonorEmptyProfileCollection(boolean flag) Sets whether to treat an empty collection returned bygetProfileConfigurations(ProfileRequestContext)as a valid outcome, thus not forwarding the lookup on to the injectedApplication.Methods inherited from class net.shibboleth.profile.relyingparty.BasicRelyingPartyConfiguration
getProfileConfiguration, isDetailedErrors, setActivationCondition, setDetailedErrors, setDetailedErrorsPredicate, setIssuer, setIssuerLookupStrategy, setProfileConfigurations, setProfileConfigurationsLookupStrategy, setResponderId, setResponderIdLookupStrategy, setSecurityConfiguration, setSecurityConfigurationLookupStrategy, testMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, 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.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
application
Delegation source. -
honorEmptyProfileCollection
private boolean honorEmptyProfileCollectionWhether to treat an empty profile configuration set as a valid outcome.
-
-
Constructor Details
-
DelegatingRelyingPartyConfiguration
public DelegatingRelyingPartyConfiguration()
-
-
Method Details
-
setApplication
Sets theApplicationto delegate to.- Parameters:
app- object to delegate to
-
setHonorEmptyProfileCollection
public void setHonorEmptyProfileCollection(boolean flag) Sets whether to treat an empty collection returned bygetProfileConfigurations(ProfileRequestContext)as a valid outcome, thus not forwarding the lookup on to the injectedApplication.Defaults to false, disallowing an empty collection as an expected result.
- Parameters:
flag- flag to set
-
getIssuer
- Specified by:
getIssuerin interfaceRelyingPartyConfiguration- Overrides:
getIssuerin classBasicRelyingPartyConfiguration
-
getSecurityConfiguration
@Nullable public SecurityConfiguration getSecurityConfiguration(@Nullable ProfileRequestContext profileRequestContext) - Specified by:
getSecurityConfigurationin interfaceRelyingPartyConfiguration- Overrides:
getSecurityConfigurationin classBasicRelyingPartyConfiguration
-
getProfileConfigurations
@Nonnull @Unmodifiable @NotLive public Map<String,ProfileConfiguration> getProfileConfigurations(@Nullable ProfileRequestContext profileRequestContext) - Specified by:
getProfileConfigurationsin interfaceRelyingPartyConfiguration- Overrides:
getProfileConfigurationsin classBasicRelyingPartyConfiguration
-