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 TypeFieldDescriptionprivate Function<ProfileRequestContext,String> Lookup strategy for attribute recipient group ID.static 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 Function<ProfileRequestContext,Collection<String>> Lookup strategy for requested IdP attribute names to pass into resolver.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 TypeMethodDescriptiongetAttributeRecipientGroupID(ProfileRequestContext profileRequestContext) protected abstract intGet default ticket length.protected abstract StringGet default ticket prefix.getRequestedIdPAttributeNames(ProfileRequestContext profileRequestContext) getSecurityConfiguration(ProfileRequestContext profileRequestContext) getTicketValidityPeriod(ProfileRequestContext profileRequestContext) Get ticket validity period.booleanisResolveAttributes(ProfileRequestContext profileRequestContext) voidsetAttributeRecipientGroupID(String groupID) Set the group of services for which attributes are being resolved.voidSet the lookup strategy for the group of services for which attributes are being resolved.voidSetIdPAttributenames to resolve (if resolving attributes).voidsetRequestedIdPAttributeNamesLookupStrategy(Function<ProfileRequestContext, Collection<String>> strategy) Lookup strategy forIdPAttributenames to resolve (if resolving 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.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. -
requestedIdPAttributeNamesLookupStrategy
@Nonnull private Function<ProfileRequestContext,Collection<String>> requestedIdPAttributeNamesLookupStrategyLookup strategy for requested IdP attribute names to pass into resolver. -
attributeRecipientGroupIDLookupStrategy
Lookup strategy for attribute recipient group ID. -
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
-
getRequestedIdPAttributeNames
@Nonnull @Unmodifiable @NotLive public Collection<String> getRequestedIdPAttributeNames(@Nullable ProfileRequestContext profileRequestContext) - Specified by:
getRequestedIdPAttributeNamesin interfaceAttributeResolvingProfileConfiguration
-
setRequestedIdPAttributeNames
SetIdPAttributenames to resolve (if resolving attributes).- Parameters:
names-IdPAttributenames to resolve- Since:
- 5.2.0
-
setRequestedIdPAttributeNamesLookupStrategy
public void setRequestedIdPAttributeNamesLookupStrategy(@Nonnull Function<ProfileRequestContext, Collection<String>> strategy) Lookup strategy forIdPAttributenames to resolve (if resolving attributes).- Parameters:
strategy- lookup strategy- Since:
- 5.2.0
-
getAttributeRecipientGroupID
@Nullable public String getAttributeRecipientGroupID(@Nullable ProfileRequestContext profileRequestContext) - Specified by:
getAttributeRecipientGroupIDin interfaceAttributeResolvingProfileConfiguration
-
setAttributeRecipientGroupID
Set the group of services for which attributes are being resolved.- Parameters:
groupID- group identifier- Since:
- 5.2.0
-
setAttributeRecipientGroupIDLookupStrategy
public void setAttributeRecipientGroupIDLookupStrategy(@Nonnull Function<ProfileRequestContext, String> strategy) Set the lookup strategy for the group of services for which attributes are being resolved.- Parameters:
strategy- lookup strategy- Since:
- 5.2.0
-
getDefaultTicketPrefix
Get default ticket prefix.- Returns:
- prefix
-
getDefaultTicketLength
protected abstract int getDefaultTicketLength()Get default ticket length.- Returns:
- length
-