Package net.shibboleth.idp.cas.config
Class AbstractProtocolConfiguration
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
net.shibboleth.idp.cas.config.AbstractProtocolConfiguration
- All Implemented Interfaces:
AttributeResolvingProfileConfiguration,ConditionalProfileConfiguration,ProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
LoginConfiguration,ProxyConfiguration,ValidateConfiguration
public abstract class AbstractProtocolConfiguration
extends AbstractConditionalProfileConfiguration
implements AttributeResolvingProfileConfiguration, InitializableComponent
Base class for CAS protocol configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DurationDefault ticket validity.private final SecurityConfigurationHolds default security config object to use.static final StringCAS base protocol URI.private Predicate<ProfileRequestContext>Whether attributes should be resolved in the course of the profile.private Function<ProfileRequestContext,Duration> Lookup function to supply ticketValidityPeriod property.Fields inherited from class net.shibboleth.idp.profile.config.AbstractProfileConfiguration
DEFAULT_DISALLOWED_FEATURES -
Constructor Summary
ConstructorsConstructorDescriptionAbstractProtocolConfiguration(String profileId) Creates a new configuration instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract intGet default ticket length.protected abstract StringGet default ticket prefix.getSecurityConfiguration(ProfileRequestContext profileRequestContext) Get theSecurityConfigurationto use with this profile.getTicketValidityPeriod(ProfileRequestContext profileRequestContext) Get ticket validity period.booleanisResolveAttributes(ProfileRequestContext profileRequestContext) Get whether to resolve attributes.voidsetResolveAttributes(boolean flag) Set whether attributes should be resolved during the profile.voidSet a condition to determine whether attributes should be resolved during the profile.voidsetTicketValidityPeriod(Duration ticketTTL) Sets the ticket validity period.voidSet a lookup strategy for the ticket validity period.Methods inherited from class net.shibboleth.idp.profile.config.AbstractConditionalProfileConfiguration
getActivationCondition, setActivationConditionMethods inherited from class net.shibboleth.idp.profile.config.AbstractProfileConfiguration
equals, getDisallowedFeatures, getInboundInterceptorFlows, getOutboundInterceptorFlows, hashCode, isFeatureDisallowed, setDisallowedFeatures, setDisallowedFeaturesLookupStrategy, setInboundFlowsLookupStrategy, setInboundInterceptorFlows, setInboundInterceptorFlowsLookupStrategy, setOutboundFlowsLookupStrategy, setOutboundInterceptorFlows, setOutboundInterceptorFlowsLookupStrategy, setSecurityConfiguration, setSecurityConfigurationLookupStrategyMethods 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
getIdMethods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitializedMethods inherited from interface net.shibboleth.idp.profile.config.ProfileConfiguration
getInboundInterceptorFlows, getOutboundInterceptorFlows
-
Field Details
-
PROTOCOL_URI
CAS base protocol URI.- See Also:
-
DEFAULT_TICKET_VALIDITY_PERIOD
Default ticket validity. -
ticketValidityPeriodLookupStrategy
Lookup function to supply ticketValidityPeriod property. -
resolveAttributesPredicate
Whether attributes should be resolved in the course of the profile. -
defaultSecurityConfiguration
Holds default security config object to use.
-
-
Constructor Details
-
AbstractProtocolConfiguration
Creates a new configuration instance.- Parameters:
profileId- Unique profile identifier
-
-
Method Details
-
getSecurityConfiguration
@Nullable public SecurityConfiguration getSecurityConfiguration(@Nullable ProfileRequestContext profileRequestContext) Get theSecurityConfigurationto use with this profile.- Specified by:
getSecurityConfigurationin interfaceProfileConfiguration- Overrides:
getSecurityConfigurationin classAbstractProfileConfiguration- Parameters:
profileRequestContext- current profile request context- Returns:
- security configuration to use with this profile
-
getTicketValidityPeriod
@Nonnull public Duration getTicketValidityPeriod(@Nullable ProfileRequestContext profileRequestContext) Get ticket validity period.- Parameters:
profileRequestContext- current profile request context- Returns:
- ticket validity period
-
setTicketValidityPeriod
Sets the ticket validity period.- Parameters:
ticketTTL- ticket validity period
-
setTicketValidityPeriodLookupStrategy
public void setTicketValidityPeriodLookupStrategy(@Nonnull Function<ProfileRequestContext, Duration> strategy) Set a lookup strategy for the ticket validity period.- Parameters:
strategy- lookup strategy- Since:
- 3.3.0
-
isResolveAttributes
Get whether to resolve attributes.- Specified by:
isResolveAttributesin interfaceAttributeResolvingProfileConfiguration- Parameters:
profileRequestContext- current profile request context- Returns:
- true iff resolution should be done
-
setResolveAttributes
public void setResolveAttributes(boolean flag) Set whether attributes should be resolved during the profile.- Parameters:
flag- flag to set
-
setResolveAttributesPredicate
Set a condition to determine whether attributes should be resolved during the profile.- Parameters:
condition- condition to set- Since:
- 3.3.0
-
getDefaultTicketPrefix
Get default ticket prefix.- Returns:
- prefix
-
getDefaultTicketLength
protected abstract int getDefaultTicketLength()Get default ticket length.- Returns:
- length
-