Package net.shibboleth.sp
Class BasicProtocolSupportService
- All Implemented Interfaces:
Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,ProtocolSupportService,Ordered
public class BasicProtocolSupportService
extends AbstractIdentifiableInitializableComponent
implements ProtocolSupportService, Ordered
This is a simple implementation of the
ProtocolSupportService interface for use
by plugins that need to implement it.-
Field Summary
FieldsModifier and TypeFieldDescriptionLogout Consumer flow IDs.Logout Initiator flow IDs.private Collection<ProfileConfiguration>Metadata-driven verified configurations.private Collection<ProfileConfiguration>Metadata-driven unverified configurations.private intSpring auto-wiring order.private Collection<ProfileConfiguration>Non-metadata-driven verified configurations.Session Initiator flow IDs.Token Consumer flow IDs.private Collection<ProfileConfiguration>Non-metadata-driven unverified configurations.Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultProfileConfigurations(boolean metadataDriven) Gets the collection of defaultProfileConfigurationobjects supplied by this protocol plugin.Gets a default-ordered list of logout consumer flows supported by this protocol plugin.Gets a default-ordered list of logout initiator flows supported by this protocol plugin.intgetOrder()Gets a default-ordered list of session initiator flows supported by this protocol plugin.Gets a default-ordered list of token consumer flows supported by this protocol plugin.getUnverifiedProfileConfigurations(boolean metadataDriven) Gets the collection of defaultProfileConfigurationobjects supplied by this protocol plugin.voidSets the collection of available non-metadata-drivenProfileConfigurationobjects to install for "verified" use.voidsetLogoutConsumers(List<String> flows) Sets the ordered list of logout consumer flow IDs to install.voidsetLogoutInitiators(List<String> flows) Sets the ordered list of logout initiator flow IDs to install.voidSets the collection of available metadata-drivenProfileConfigurationobjects to install for "verified" use.voidSets the collection of available metadata-drivenProfileConfigurationobjects to install for "unverified" use.voidsetOrder(int priority) Set the order/priority value for the bean.voidsetSessionInitiators(List<String> flows) Sets the ordered list of session initiator flow IDs to install.voidsetTokenConsumers(List<String> flows) Sets the ordered list of token consumer flow IDs to install.voidSets the collection of available non-metadata-drivenProfileConfigurationobjects to install for "unverified" use.Methods 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
order
private int orderSpring auto-wiring order. -
sessionInitiators
Session Initiator flow IDs. -
tokenConsumers
Token Consumer flow IDs. -
logoutInitiators
Logout Initiator flow IDs. -
logoutConsumers
Logout Consumer flow IDs. -
profileConfigurations
Non-metadata-driven verified configurations. -
metadataDrivenProfileConfigurations
Metadata-driven verified configurations. -
unverifiedProfileConfigurations
Non-metadata-driven unverified configurations. -
metadataDrivenUnverifiedProfileConfigurations
Metadata-driven unverified configurations.
-
-
Constructor Details
-
BasicProtocolSupportService
public BasicProtocolSupportService()Constructor.
-
-
Method Details
-
getOrder
public int getOrder() -
setOrder
public void setOrder(int priority) Set the order/priority value for the bean.- Parameters:
priority- priority value
-
getSessionInitiators
Gets a default-ordered list of session initiator flows supported by this protocol plugin.The default order should reflect what "most" deployers would expect to use when adding support for this plugin to their system.
- Specified by:
getSessionInitiatorsin interfaceProtocolSupportService- Returns:
- ordered list of unprefixed flow IDs
-
setSessionInitiators
Sets the ordered list of session initiator flow IDs to install.- Parameters:
flows- ordered list of unprefixed initiator flow IDs
-
getTokenConsumers
Gets a default-ordered list of token consumer flows supported by this protocol plugin.The default order should reflect what "most" deployers would expect to use when adding support for this plugin to their system.
- Specified by:
getTokenConsumersin interfaceProtocolSupportService- Returns:
- ordered list of unprefixed flow IDs
-
setTokenConsumers
Sets the ordered list of token consumer flow IDs to install.- Parameters:
flows- ordered list of unprefixed token consumer flow IDs
-
getLogoutInitiators
Gets a default-ordered list of logout initiator flows supported by this protocol plugin.The default order should reflect what "most" deployers would expect to use when adding support for this plugin to their system.
- Specified by:
getLogoutInitiatorsin interfaceProtocolSupportService- Returns:
- ordered list of unprefixed flow IDs
-
setLogoutInitiators
Sets the ordered list of logout initiator flow IDs to install.- Parameters:
flows- ordered list of unprefixed initiator flow IDs
-
getLogoutConsumers
Gets a default-ordered list of logout consumer flows supported by this protocol plugin.The default order should reflect what "most" deployers would expect to use when adding support for this plugin to their system.
- Specified by:
getLogoutConsumersin interfaceProtocolSupportService- Returns:
- ordered list of unprefixed flow IDs
-
setLogoutConsumers
Sets the ordered list of logout consumer flow IDs to install.- Parameters:
flows- ordered list of unprefixed logout consumer flow IDs
-
getDefaultProfileConfigurations
@Nonnull @Unmodifiable @NotLive public Collection<ProfileConfiguration> getDefaultProfileConfigurations(boolean metadataDriven) Gets the collection of defaultProfileConfigurationobjects supplied by this protocol plugin.This collectuon should include only profiles intended for "verified" use by default.
- Specified by:
getDefaultProfileConfigurationsin interfaceProtocolSupportService- Parameters:
metadataDriven- true iff the metadata-driven variant of these objects should be returned- Returns:
- the relevant available profile configurations
-
setDefaultProfileConfigurations
Sets the collection of available non-metadata-drivenProfileConfigurationobjects to install for "verified" use.- Parameters:
configs- profile configurations
-
setMetadataDrivenDefaultProfileConfigurations
public void setMetadataDrivenDefaultProfileConfigurations(@Nullable Collection<ProfileConfiguration> configs) Sets the collection of available metadata-drivenProfileConfigurationobjects to install for "verified" use.- Parameters:
configs- profile configurations
-
getUnverifiedProfileConfigurations
@Nonnull @Unmodifiable @NotLive public Collection<ProfileConfiguration> getUnverifiedProfileConfigurations(boolean metadataDriven) Gets the collection of defaultProfileConfigurationobjects supplied by this protocol plugin.This collectuon should include only profiles intended for "unverified" use by default.
- Specified by:
getUnverifiedProfileConfigurationsin interfaceProtocolSupportService- Parameters:
metadataDriven- true iff the metadata-driven variant of these objects should be returned- Returns:
- the relevant available profile configurations
-
setUnverifiedProfileConfigurations
Sets the collection of available non-metadata-drivenProfileConfigurationobjects to install for "unverified" use.- Parameters:
configs- profile configurations
-
setMetadataDrivenUnverifiedDefaultProfileConfigurations
public void setMetadataDrivenUnverifiedDefaultProfileConfigurations(@Nullable Collection<ProfileConfiguration> configs) Sets the collection of available metadata-drivenProfileConfigurationobjects to install for "unverified" use.- Parameters:
configs- profile configurations
-