Class AbstractProfileConfiguration
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
- All Implemented Interfaces:
ProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
AbstractConditionalProfileConfiguration,BasicAdministrativeFlowDescriptor
public abstract class AbstractProfileConfiguration
extends AbstractIdentifiableInitializableComponent
implements ProfileConfiguration
Base class for
ProfileConfiguration implementations.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntegerDefault value for disallowedFeatures property.private Function<ProfileRequestContext,Integer> Lookup function to return a bitmask of request features to disallow.private Function<ProfileRequestContext,List<String>> Lookup function to supply inboundFlows property.private final org.slf4j.LoggerClass logger.private Function<ProfileRequestContext,List<String>> Lookup function to supply #outboundFlows property.Lookup function to supply securityConfiguration property. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetDisallowedFeatures(ProfileRequestContext profileRequestContext) Get a bitmask of disallowed features to block.getInboundInterceptorFlows(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.getSecurityConfiguration(ProfileRequestContext profileRequestContext) Get theSecurityConfigurationto use with this profile.inthashCode()booleanisFeatureDisallowed(ProfileRequestContext profileRequestContext, int feature) Return true iff the input feature constant is disallowed.voidsetDisallowedFeatures(int mask) Set a bitmask of disallowed features to block.voidSet a lookup strategy for the bitmask of disallowed features to block.voidDeprecated, for removal: This API element is subject to removal in a future version.voidSet the ordered collection of inbound interceptor flows to enable.voidSet a lookup strategy for the inbound interceptor flows to enable.voidDeprecated, for removal: This API element is subject to removal in a future version.voidSet the ordered collection of outbound interceptor flows to enable.voidSet a lookup strategy for the outbound interceptor flows to enable.voidsetSecurityConfiguration(SecurityConfiguration configuration) Sets the security configuration for this profile.voidsetSecurityConfigurationLookupStrategy(Function<ProfileRequestContext, SecurityConfiguration> strategy) Set a lookup strategy for the security configuration.Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
doInitialize, getIdMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
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.utilities.java.support.component.IdentifiedComponent
getId
-
Field Details
-
DEFAULT_DISALLOWED_FEATURES
Default value for disallowedFeatures property. -
log
@Nonnull private final org.slf4j.Logger logClass logger. -
inboundFlowsLookupStrategy
Lookup function to supply inboundFlows property. -
outboundFlowsLookupStrategy
Lookup function to supply #outboundFlows property. -
securityConfigurationLookupStrategy
@Nonnull private Function<ProfileRequestContext,SecurityConfiguration> securityConfigurationLookupStrategyLookup function to supply securityConfiguration property. -
disallowedFeaturesLookupStrategy
Lookup function to return a bitmask of request features to disallow.
-
-
Constructor Details
-
AbstractProfileConfiguration
Constructor.- Parameters:
id- ID of the communication profile, never null or empty
-
-
Method Details
-
getSecurityConfiguration
@Nullable public SecurityConfiguration getSecurityConfiguration(@Nullable ProfileRequestContext profileRequestContext) Get theSecurityConfigurationto use with this profile.- Specified by:
getSecurityConfigurationin interfaceProfileConfiguration- Parameters:
profileRequestContext- current profile request context- Returns:
- security configuration to use with this profile
-
setSecurityConfiguration
Sets the security configuration for this profile.- Parameters:
configuration- security configuration for this profile
-
setSecurityConfigurationLookupStrategy
public void setSecurityConfigurationLookupStrategy(@Nonnull Function<ProfileRequestContext, SecurityConfiguration> strategy) Set a lookup strategy for the security configuration.- Parameters:
strategy- lookup strategy- Since:
- 3.3.0
-
getInboundInterceptorFlows
@Nonnull @NonnullElements @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 interfaceProfileConfiguration- 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
-
setInboundFlowsLookupStrategy
@Deprecated(since="4.2.0", forRemoval=true) public void setInboundFlowsLookupStrategy(@Nonnull Function<ProfileRequestContext, List<String>> strategy) Deprecated, for removal: This API element is subject to removal in a future version.Set a lookup strategy for the inbound interceptor flows to enable.- Parameters:
strategy- lookup strategy- Since:
- 3.3.0
-
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 @NonnullElements @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 interfaceProfileConfiguration- 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
-
setOutboundFlowsLookupStrategy
@Deprecated(since="4.2.0", forRemoval=true) public void setOutboundFlowsLookupStrategy(@Nonnull Function<ProfileRequestContext, List<String>> strategy) Deprecated, for removal: This API element is subject to removal in a future version.Set a lookup strategy for the outbound interceptor flows to enable.- Parameters:
strategy- lookup strategy- Since:
- 3.3.0
-
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
-
isFeatureDisallowed
public boolean isFeatureDisallowed(@Nullable ProfileRequestContext profileRequestContext, int feature) Return true iff the input feature constant is disallowed.- Parameters:
profileRequestContext- current profile request contextfeature- a bit constant- Returns:
- true iff the input feature constant is disallowed
- Since:
- 3.3.0
-
getDisallowedFeatures
Get a bitmask of disallowed features to block.Individual profiles define their own feature constants.
- Parameters:
profileRequestContext- current profile request context- Returns:
- bitmask of features to block
- Since:
- 3.3.0
-
setDisallowedFeatures
public void setDisallowedFeatures(int mask) Set a bitmask of disallowed features to block.- Parameters:
mask- a bitmask of features to block- Since:
- 3.3.0
-
setDisallowedFeaturesLookupStrategy
public void setDisallowedFeaturesLookupStrategy(@Nonnull Function<ProfileRequestContext, Integer> strategy) Set a lookup strategy for the bitmask of disallowed features to block.- Parameters:
strategy- lookup strategy- Since:
- 3.3.0
-
hashCode
public int hashCode() -
equals
-