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.sp.impl.DelegatingRelyingPartyConfiguration
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,RelyingPartyConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class DelegatingRelyingPartyConfiguration
extends AbstractIdentifiableInitializableComponent
implements RelyingPartyConfiguration, Predicate<ProfileRequestContext>
Wrapper for
RelyingPartyConfiguration that will handle absent settings
by delegating to an injected instance of Application.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ApplicationInheritance source.private booleanWhether to treat an empty profile configuration set as a valid outcome.private RelyingPartyConfigurationDelegation target. -
Constructor Summary
ConstructorsConstructorDescriptionDelegatingRelyingPartyConfiguration(Application app, RelyingPartyConfiguration config, boolean honorEmpty) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetId()getIssuer(ProfileRequestContext profileRequestContext) getProfileConfiguration(ProfileRequestContext profileRequestContext, String profileId) getProfileConfigurations(ProfileRequestContext profileRequestContext) getSecurityConfiguration(ProfileRequestContext profileRequestContext) booleanisDetailedErrors(ProfileRequestContext profileRequestContext) voidsetResponderId(String issuer) booleantest(ProfileRequestContext input) Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, 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.InitializableComponent
initialize, isInitialized
-
Field Details
-
application
Inheritance source. -
relyingPartyConfiguration
Delegation target. -
honorEmptyProfileCollection
private boolean honorEmptyProfileCollectionWhether to treat an empty profile configuration set as a valid outcome.
-
-
Constructor Details
-
DelegatingRelyingPartyConfiguration
public DelegatingRelyingPartyConfiguration(@Nonnull Application app, @Nonnull RelyingPartyConfiguration config, boolean honorEmpty) Constructor.- Parameters:
app- inheritance sourceconfig- delegation targethonorEmpty- whether to treat empty profile configuration collection as legitimate
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceIdentifiedComponent- Overrides:
getIdin classAbstractIdentifiedInitializableComponent
-
test
- Specified by:
testin interfacePredicate<ProfileRequestContext>
-
setResponderId
- Specified by:
setResponderIdin interfaceRelyingPartyConfiguration
-
getIssuer
- Specified by:
getIssuerin interfaceRelyingPartyConfiguration
-
getSecurityConfiguration
@Nullable public SecurityConfiguration getSecurityConfiguration(@Nullable ProfileRequestContext profileRequestContext) - Specified by:
getSecurityConfigurationin interfaceRelyingPartyConfiguration
-
getProfileConfigurations
@Nonnull @Unmodifiable @NotLive public Map<String,ProfileConfiguration> getProfileConfigurations(@Nullable ProfileRequestContext profileRequestContext) - Specified by:
getProfileConfigurationsin interfaceRelyingPartyConfiguration
-
getProfileConfiguration
public ProfileConfiguration getProfileConfiguration(ProfileRequestContext profileRequestContext, String profileId) - Specified by:
getProfileConfigurationin interfaceRelyingPartyConfiguration
-
isDetailedErrors
- Specified by:
isDetailedErrorsin interfaceRelyingPartyConfiguration
-