use of org.springframework.webflow.config.FlowDefinitionRegistryBuilder in project cas by apereo.
the class DuoSecurityMultifactorWebflowConfigurer method createDuoFlowDefinitionRegistry.
private FlowDefinitionRegistry createDuoFlowDefinitionRegistry(final DuoSecurityMultifactorAuthenticationProperties p, final DynamicFlowModelBuilder modelBuilder) {
val holder = new DefaultFlowModelHolder(modelBuilder);
val flowBuilder = new FlowModelFlowBuilder(holder);
val builder = new FlowDefinitionRegistryBuilder(applicationContext, flowBuilderServices);
builder.addFlowBuilder(flowBuilder, p.getId());
return builder.build();
}
Aggregations