Package org.apereo.cas.web.flow
Class FlowBuilderConversionService
java.lang.Object
org.springframework.binding.convert.service.GenericConversionService
org.springframework.binding.convert.service.DefaultConversionService
org.apereo.cas.web.flow.FlowBuilderConversionService
- All Implemented Interfaces:
org.springframework.binding.convert.ConversionService
public class FlowBuilderConversionService
extends org.springframework.binding.convert.service.DefaultConversionService
Special conversion service with a
CompositeFlowExecutionKeyConverter.- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionFlowBuilderConversionService(org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> webApplicationServiceFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.binding.convert.ConversionExecutorgetConversionExecutor(String id, Class<?> sourceClass, Class<?> targetClass) This is necessary here, because the default executor will wrap our converter inside aObjectToArraycomponent that inteferes with the conversion.Methods inherited from class org.springframework.binding.convert.service.GenericConversionService
addAlias, addConverter, addConverter, executeConversion, executeConversion, getClassForAlias, getConversionExecutor, getDelegateConversionService, getParent, setParent
-
Constructor Details
-
FlowBuilderConversionService
public FlowBuilderConversionService(org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> webApplicationServiceFactory)
-
-
Method Details
-
getConversionExecutor
public org.springframework.binding.convert.ConversionExecutor getConversionExecutor(String id, Class<?> sourceClass, Class<?> targetClass) throws org.springframework.binding.convert.ConversionExecutorNotFoundException This is necessary here, because the default executor will wrap our converter inside aObjectToArraycomponent that inteferes with the conversion. This conversion is mainly applicable when passwords in form ofStringneed to bind over to character arrays.- Specified by:
getConversionExecutorin interfaceorg.springframework.binding.convert.ConversionService- Overrides:
getConversionExecutorin classorg.springframework.binding.convert.service.GenericConversionService- Parameters:
id- identifier of the converter.sourceClass- source class of the binding objecttargetClass- target class of the binding object- Returns:
- conversion executor
- Throws:
org.springframework.binding.convert.ConversionExecutorNotFoundException
-