Class AbstractConditionalProfileConfiguration
- 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.profile.config.AbstractProfileConfiguration
-
- net.shibboleth.idp.profile.config.AbstractConditionalProfileConfiguration
-
- All Implemented Interfaces:
ConditionalProfileConfiguration,ProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public abstract class AbstractConditionalProfileConfiguration extends AbstractProfileConfiguration implements ConditionalProfileConfiguration
Base class forConditionalProfileConfigurationimplementations.- Since:
- 3.4.0
-
-
Field Summary
Fields Modifier and Type Field Description private Predicate<ProfileRequestContext>activationConditionActivation condition.-
Fields inherited from class net.shibboleth.idp.profile.config.AbstractProfileConfiguration
DEFAULT_DISALLOWED_FEATURES
-
-
Constructor Summary
Constructors Constructor Description AbstractConditionalProfileConfiguration(String id)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicate<ProfileRequestContext>getActivationCondition()Get the condition controlling enablement of this profile.voidsetActivationCondition(Predicate<ProfileRequestContext> condition)Set an activation condition to control this profile.-
Methods inherited from class net.shibboleth.idp.profile.config.AbstractProfileConfiguration
equals, getDisallowedFeatures, getInboundInterceptorFlows, getOutboundInterceptorFlows, getSecurityConfiguration, hashCode, isFeatureDisallowed, setDisallowedFeatures, setDisallowedFeaturesLookupStrategy, setInboundFlowsLookupStrategy, setInboundInterceptorFlows, setOutboundFlowsLookupStrategy, setOutboundInterceptorFlows, setSecurityConfiguration, setSecurityConfigurationLookupStrategy
-
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
Methods inherited from interface net.shibboleth.idp.profile.config.ProfileConfiguration
getInboundInterceptorFlows, getOutboundInterceptorFlows, getSecurityConfiguration
-
-
-
-
Field Detail
-
activationCondition
@Nonnull private Predicate<ProfileRequestContext> activationCondition
Activation condition.
-
-
Constructor Detail
-
AbstractConditionalProfileConfiguration
public AbstractConditionalProfileConfiguration(@Nonnull @NotEmpty @ParameterName(name="id") String id)
Constructor.- Parameters:
id- ID of the communication profile, never null or empty
-
-
Method Detail
-
getActivationCondition
@Nonnull public Predicate<ProfileRequestContext> getActivationCondition()
Get the condition controlling enablement of this profile.- Specified by:
getActivationConditionin interfaceConditionalProfileConfiguration- Returns:
- condition controlling enablement of this profile
-
setActivationCondition
public void setActivationCondition(@Nonnull Predicate<ProfileRequestContext> condition)Set an activation condition to control this profile.- Parameters:
condition- condition to apply
-
-