Class AbstractInterceptorAwareProfileConfiguration
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.profile.config.AbstractProfileConfiguration
net.shibboleth.profile.config.AbstractConditionalProfileConfiguration
net.shibboleth.idp.profile.config.AbstractInterceptorAwareProfileConfiguration
- All Implemented Interfaces:
InterceptorAwareProfileConfiguration,ConditionalProfileConfiguration,ProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
AbstractProtocolConfiguration,AbstractSAMLProfileConfiguration,BasicAdministrativeFlowDescriptor,MockAuthenticationProfileConfiguration,MockProfileConfiguration
public abstract class AbstractInterceptorAwareProfileConfiguration
extends AbstractConditionalProfileConfiguration
implements InterceptorAwareProfileConfiguration
Base class for
InterceptorAwareProfileConfiguration implementations.- Since:
- 5.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProfileRequestContext,List<String>> Lookup function to supply inboundFlows property.private Function<ProfileRequestContext,List<String>> Lookup function to supply #outboundFlows property.Fields inherited from interface net.shibboleth.profile.config.ProfileConfiguration
DEFAULT_DISALLOWED_FEATURES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInboundInterceptorFlows(ProfileRequestContext profileRequestContext) Get an ordered list of interceptor flows to run for this profile after an inbound message is decoded.getOutboundInterceptorFlows(ProfileRequestContext profileRequestContext) Get an ordered list of interceptor flows to run for this profile before a final outbound message is generated.voidSet the ordered collection of inbound interceptor flows to enable.voidSet a lookup strategy for the inbound interceptor flows to enable.voidSet the ordered collection of outbound interceptor flows to enable.voidSet a lookup strategy for the outbound interceptor flows to enable.Methods inherited from class net.shibboleth.profile.config.AbstractConditionalProfileConfiguration
getActivationCondition, setActivationConditionMethods inherited from class net.shibboleth.profile.config.AbstractProfileConfiguration
equals, getDisallowedFeatures, getSecurityConfiguration, hashCode, isFeatureDisallowed, setDisallowedFeatures, setDisallowedFeaturesLookupStrategy, setSecurityConfiguration, setSecurityConfigurationLookupStrategyMethods 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, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.profile.config.ProfileConfiguration
getDisallowedFeatures, getSecurityConfiguration, isFeatureDisallowed
-
Field Details
-
inboundFlowsLookupStrategy
Lookup function to supply inboundFlows property. -
outboundFlowsLookupStrategy
Lookup function to supply #outboundFlows property.
-
-
Constructor Details
-
AbstractInterceptorAwareProfileConfiguration
public AbstractInterceptorAwareProfileConfiguration(@Nonnull @NotEmpty @ParameterName(name="id") String id) Constructor.- Parameters:
id- ID of the communication profile, never null or empty
-
-
Method Details
-
getInboundInterceptorFlows
@Nonnull @NotLive @Unmodifiable public List<String> getInboundInterceptorFlows(@Nullable ProfileRequestContext profileRequestContext) Get an ordered list of interceptor flows to run for this profile after an inbound message is decoded.The flow IDs returned MUST NOT contain the
ProfileInterceptorFlowDescriptor.FLOW_ID_PREFIXprefix common to all interceptor flows.- Specified by:
getInboundInterceptorFlowsin interfaceInterceptorAwareProfileConfiguration- Parameters:
profileRequestContext- current profile request context- Returns:
- a set of interceptor flow IDs to enable
-
setInboundInterceptorFlows
Set the ordered collection of inbound interceptor flows to enable.- Parameters:
flows- flow identifiers to enable
-
setInboundInterceptorFlowsLookupStrategy
public void setInboundInterceptorFlowsLookupStrategy(@Nonnull Function<ProfileRequestContext, List<String>> strategy) Set a lookup strategy for the inbound interceptor flows to enable.- Parameters:
strategy- lookup strategy- Since:
- 4.2.0
-
getOutboundInterceptorFlows
@Nonnull @NotLive @Unmodifiable public List<String> getOutboundInterceptorFlows(@Nullable ProfileRequestContext profileRequestContext) Get an ordered list of interceptor flows to run for this profile before a final outbound message is generated.The flow IDs returned MUST NOT contain the
ProfileInterceptorFlowDescriptor.FLOW_ID_PREFIXprefix common to all interceptor flows.- Specified by:
getOutboundInterceptorFlowsin interfaceInterceptorAwareProfileConfiguration- Parameters:
profileRequestContext- current profile request context- Returns:
- a set of interceptor flow IDs to enable
-
setOutboundInterceptorFlows
Set the ordered collection of outbound interceptor flows to enable.- Parameters:
flows- flow identifiers to enable
-
setOutboundInterceptorFlowsLookupStrategy
public void setOutboundInterceptorFlowsLookupStrategy(@Nonnull Function<ProfileRequestContext, List<String>> strategy) Set a lookup strategy for the outbound interceptor flows to enable.- Parameters:
strategy- lookup strategy- Since:
- 4.2.0
-