public abstract class AbstractProfileConfiguration extends Object implements ProfileConfiguration
ProfileConfiguration implementations.| Modifier and Type | Field and Description |
|---|---|
private int |
disallowedFeatures
Bitmask of request features to disallow.
|
private com.google.common.base.Function<ProfileRequestContext,Integer> |
disallowedFeaturesLookupStrategy
Lookup function to return a bitmask of request features to disallow.
|
private List<String> |
inboundFlows
Enables inbound interceptor flows.
|
private com.google.common.base.Function<ProfileRequestContext,List<String>> |
inboundFlowsLookupStrategy
Lookup function to supply
inboundFlows property. |
private Logger |
log
Class logger.
|
private List<String> |
outboundFlows
Enables outbound interceptor flows.
|
private com.google.common.base.Function<ProfileRequestContext,List<String>> |
outboundFlowsLookupStrategy
Lookup function to supply
outboundFlows property. |
private String |
profileId
ID of the profile configured.
|
private SecurityConfiguration |
securityConfiguration
The security configuration for this profile.
|
private com.google.common.base.Function<ProfileRequestContext,SecurityConfiguration> |
securityConfigurationLookupStrategy
Lookup function to supply
securityConfiguration property. |
private javax.servlet.ServletRequest |
servletRequest
Access to servlet request.
|
| Constructor and Description |
|---|
AbstractProfileConfiguration(String id)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getDisallowedFeatures()
Get a bitmask of disallowed features to block.
|
String |
getId() |
List<String> |
getInboundInterceptorFlows()
Get an ordered list of interceptor flows to run for this profile after an inbound message is
decoded.
|
protected <T> T |
getIndirectProperty(com.google.common.base.Function<ProfileRequestContext,T> lookupStrategy,
T staticValue)
Get a property, possibly through indirection via a lookup function.
|
List<String> |
getOutboundInterceptorFlows()
Get an ordered list of interceptor flows to run for this profile before a final outbound
message is generated.
|
protected ProfileRequestContext |
getProfileRequestContext()
Get the current
ProfileRequestContext. |
SecurityConfiguration |
getSecurityConfiguration()
Get the
SecurityConfiguration to use with this profile. |
int |
hashCode() |
boolean |
isFeatureDisallowed(int feature)
Return true iff the input feature constant is disallowed.
|
void |
setDisallowedFeatures(int mask)
Set a bitmask of disallowed features to block.
|
void |
setDisallowedFeaturesLookupStrategy(com.google.common.base.Function<ProfileRequestContext,Integer> strategy)
Set a lookup strategy for the bitmask of disallowed features to block.
|
void |
setInboundFlowsLookupStrategy(com.google.common.base.Function<ProfileRequestContext,List<String>> strategy)
Set a lookup strategy for the
inboundFlows property. |
void |
setInboundInterceptorFlows(Collection<String> flows)
Set the ordered collection of inbound interceptor flows to enable.
|
void |
setOutboundFlowsLookupStrategy(com.google.common.base.Function<ProfileRequestContext,List<String>> strategy)
Set a lookup strategy for the
outboundFlows property. |
void |
setOutboundInterceptorFlows(Collection<String> flows)
Set the ordered collection of outbound interceptor flows to enable.
|
void |
setSecurityConfiguration(SecurityConfiguration configuration)
Sets the security configuration for this profile.
|
void |
setSecurityConfigurationLookupStrategy(com.google.common.base.Function<ProfileRequestContext,SecurityConfiguration> strategy)
Set a lookup strategy for the
securityConfiguration property. |
void |
setServletRequest(javax.servlet.ServletRequest request)
Set the
ServletRequest from which to obtain a reference to the current ProfileRequestContext. |
@Nullable private javax.servlet.ServletRequest servletRequest
@Nullable private com.google.common.base.Function<ProfileRequestContext,List<String>> inboundFlowsLookupStrategy
inboundFlows property.@Nonnull @NonnullElements private List<String> inboundFlows
@Nullable private com.google.common.base.Function<ProfileRequestContext,List<String>> outboundFlowsLookupStrategy
outboundFlows property.@Nonnull @NonnullElements private List<String> outboundFlows
@Nullable private com.google.common.base.Function<ProfileRequestContext,SecurityConfiguration> securityConfigurationLookupStrategy
securityConfiguration property.@Nullable private SecurityConfiguration securityConfiguration
@Nullable private com.google.common.base.Function<ProfileRequestContext,Integer> disallowedFeaturesLookupStrategy
private int disallowedFeatures
public AbstractProfileConfiguration(@Nonnull@NotEmpty@ParameterName(name="id") String id)
id - ID of the communication profile, never null or emptypublic void setServletRequest(@Nullable javax.servlet.ServletRequest request)
ServletRequest from which to obtain a reference to the current ProfileRequestContext.
Generally this would be expected to be a proxy to the actual object.
request - servlet request@Nonnull @NotEmpty public String getId()
getId in interface IdentifiedComponent@Nullable public SecurityConfiguration getSecurityConfiguration()
SecurityConfiguration to use with this profile.getSecurityConfiguration in interface ProfileConfigurationpublic void setSecurityConfiguration(@Nullable SecurityConfiguration configuration)
configuration - security configuration for this profilepublic void setSecurityConfigurationLookupStrategy(@Nullable com.google.common.base.Function<ProfileRequestContext,SecurityConfiguration> strategy)
securityConfiguration property.strategy - lookup strategy@Nonnull @NonnullElements @NotLive @Unmodifiable public List<String> getInboundInterceptorFlows()
The flow IDs returned MUST NOT contain the
ProfileInterceptorFlowDescriptor.FLOW_ID_PREFIX
prefix common to all interceptor flows.
getInboundInterceptorFlows in interface ProfileConfigurationpublic void setInboundInterceptorFlows(@Nullable@NonnullElements Collection<String> flows)
flows - flow identifiers to enablepublic void setInboundFlowsLookupStrategy(@Nullable com.google.common.base.Function<ProfileRequestContext,List<String>> strategy)
inboundFlows property.strategy - lookup strategy@Nonnull @NonnullElements @NotLive @Unmodifiable public List<String> getOutboundInterceptorFlows()
The flow IDs returned MUST NOT contain the
ProfileInterceptorFlowDescriptor.FLOW_ID_PREFIX
prefix common to all interceptor flows.
getOutboundInterceptorFlows in interface ProfileConfigurationpublic void setOutboundInterceptorFlows(@Nullable@NonnullElements Collection<String> flows)
flows - flow identifiers to enablepublic void setOutboundFlowsLookupStrategy(@Nullable com.google.common.base.Function<ProfileRequestContext,List<String>> strategy)
outboundFlows property.strategy - lookup strategypublic boolean isFeatureDisallowed(int feature)
feature - a bit constantpublic int getDisallowedFeatures()
Individual profiles define their own feature constants.
public void setDisallowedFeatures(int mask)
mask - a bitmask of features to blockpublic void setDisallowedFeaturesLookupStrategy(@Nullable com.google.common.base.Function<ProfileRequestContext,Integer> strategy)
strategy - lookup strategy@Nullable protected ProfileRequestContext getProfileRequestContext()
ProfileRequestContext.@Nullable protected <T> T getIndirectProperty(@Nullable com.google.common.base.Function<ProfileRequestContext,T> lookupStrategy, @Nullable T staticValue)
T - type of propertylookupStrategy - lookup strategy function for indirect accessstaticValue - static value to return in the absence of a lookup function or if null is returnedCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.