Package net.shibboleth.idp.cas.config
Class AbstractProtocolConfiguration
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.profile.config.AbstractProfileConfiguration
net.shibboleth.profile.config.AbstractConditionalProfileConfiguration
net.shibboleth.idp.profile.config.AbstractInterceptorAwareProfileConfiguration
net.shibboleth.idp.cas.config.AbstractProtocolConfiguration
- All Implemented Interfaces:
InterceptorAwareProfileConfiguration,AttributeResolvingProfileConfiguration,ConditionalProfileConfiguration,ProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
LoginConfiguration,ProxyConfiguration,ValidateConfiguration
public abstract class AbstractProtocolConfiguration
extends AbstractInterceptorAwareProfileConfiguration
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 profile counter prefix.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 interface net.shibboleth.profile.config.ProfileConfiguration
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) getTicketValidityPeriod(ProfileRequestContext profileRequestContext) Get ticket validity period.booleanisResolveAttributes(ProfileRequestContext profileRequestContext) 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.AbstractInterceptorAwareProfileConfiguration
getInboundInterceptorFlows, getOutboundInterceptorFlows, setInboundInterceptorFlows, setInboundInterceptorFlowsLookupStrategy, setOutboundInterceptorFlows, setOutboundInterceptorFlowsLookupStrategyMethods inherited from class net.shibboleth.profile.config.AbstractConditionalProfileConfiguration
getActivationCondition, setActivationConditionMethods inherited from class net.shibboleth.profile.config.AbstractProfileConfiguration
equals, getDisallowedFeatures, hashCode, isFeatureDisallowed, setDisallowedFeatures, setDisallowedFeaturesLookupStrategy, setSecurityConfiguration, setSecurityConfigurationLookupStrategyMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, 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.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitializedMethods inherited from interface net.shibboleth.profile.config.ProfileConfiguration
getDisallowedFeatures, isFeatureDisallowed
-
Field Details
-
PROTOCOL_URI
CAS base protocol URI.- See Also:
-
PROTOCOL_COUNTER
CAS base profile counter prefix.- 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) - Specified by:
getSecurityConfigurationin interfaceProfileConfiguration- Overrides:
getSecurityConfigurationin classAbstractProfileConfiguration
-
getTicketValidityPeriod
@ConfigurationSetting(name="ticketValidityPeriod") @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
- Specified by:
isResolveAttributesin interfaceAttributeResolvingProfileConfiguration
-
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
-