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 Duration
Default ticket validity.private final SecurityConfiguration
Holds default security config object to use.static final String
CAS 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 int
Get default ticket length.protected abstract String
Get default ticket prefix.getSecurityConfiguration
(ProfileRequestContext profileRequestContext) Get theSecurityConfiguration
to use with this profile.getTicketValidityPeriod
(ProfileRequestContext profileRequestContext) Get ticket validity period.boolean
isResolveAttributes
(ProfileRequestContext profileRequestContext) Get whether to resolve attributes.void
setResolveAttributes
(boolean flag) Set whether attributes should be resolved during the profile.void
Set a condition to determine whether attributes should be resolved during the profile.void
setTicketValidityPeriod
(Duration ticketTTL) Sets the ticket validity period.void
Set a lookup strategy for the ticket validity period.Methods inherited from class net.shibboleth.idp.profile.config.AbstractConditionalProfileConfiguration
getActivationCondition, setActivationCondition
Methods inherited from class net.shibboleth.idp.profile.config.AbstractProfileConfiguration
equals, getDisallowedFeatures, getInboundInterceptorFlows, getOutboundInterceptorFlows, hashCode, isFeatureDisallowed, setDisallowedFeatures, setDisallowedFeaturesLookupStrategy, setInboundFlowsLookupStrategy, setInboundInterceptorFlows, setInboundInterceptorFlowsLookupStrategy, setOutboundFlowsLookupStrategy, setOutboundInterceptorFlows, setOutboundInterceptorFlowsLookupStrategy, 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.utilities.java.support.component.InitializableComponent
initialize, isInitialized
Methods 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 theSecurityConfiguration
to use with this profile.- Specified by:
getSecurityConfiguration
in interfaceProfileConfiguration
- Overrides:
getSecurityConfiguration
in 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:
isResolveAttributes
in 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
-