本文整理汇总了Java中org.springframework.webflow.definition.registry.FlowDefinitionRegistry类的典型用法代码示例。如果您正苦于以下问题:Java FlowDefinitionRegistry类的具体用法?Java FlowDefinitionRegistry怎么用?Java FlowDefinitionRegistry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FlowDefinitionRegistry类属于org.springframework.webflow.definition.registry包,在下文中一共展示了FlowDefinitionRegistry类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: flowExecutorViaServerSessionBindingExecution
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry; //导入依赖的package包/类
@Bean
public FlowExecutor flowExecutorViaServerSessionBindingExecution() {
final FlowDefinitionRegistry loginFlowRegistry = loginFlowRegistry();
final SessionBindingConversationManager conversationManager = new SessionBindingConversationManager();
conversationManager.setLockTimeoutSeconds(Long.valueOf(casProperties.getWebflow().getSession().getLockTimeout()).intValue());
conversationManager.setMaxConversations(casProperties.getWebflow().getSession().getMaxConversations());
final FlowExecutionImplFactory executionFactory = new FlowExecutionImplFactory();
final SerializedFlowExecutionSnapshotFactory flowExecutionSnapshotFactory =
new SerializedFlowExecutionSnapshotFactory(executionFactory, loginFlowRegistry);
flowExecutionSnapshotFactory.setCompress(casProperties.getWebflow().getSession().isCompress());
final DefaultFlowExecutionRepository repository = new DefaultFlowExecutionRepository(conversationManager,
flowExecutionSnapshotFactory);
executionFactory.setExecutionKeyFactory(repository);
return new FlowExecutorImpl(loginFlowRegistry, executionFactory, repository);
}
示例2: doInitialize
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry; //导入依赖的package包/类
@Override
protected void doInitialize() throws Exception {
provider.getProviders().forEach(p -> {
final FlowDefinitionRegistry duoFlowRegistry = buildDuoFlowRegistry(p);
applicationContext.getAutowireCapableBeanFactory().initializeBean(duoFlowRegistry, p.getId());
final ConfigurableListableBeanFactory cfg = (ConfigurableListableBeanFactory) applicationContext.getAutowireCapableBeanFactory();
cfg.registerSingleton(p.getId(), duoFlowRegistry);
registerMultifactorProviderAuthenticationWebflow(getLoginFlow(), p.getId(), duoFlowRegistry);
});
casProperties.getAuthn().getMfa().getDuo()
.stream()
.filter(MultifactorAuthenticationProperties.Duo::isTrustedDeviceEnabled)
.forEach(duo -> {
final String id = duo.getId();
try {
LOGGER.debug("Activating multifactor trusted authentication for webflow [{}]", id);
final FlowDefinitionRegistry registry = applicationContext.getBean(id, FlowDefinitionRegistry.class);
registerMultifactorTrustedAuthentication(registry);
} catch (final Exception e) {
LOGGER.error("Failed to register multifactor trusted authentication for " + id, e);
}
});
}
示例3: validateFlowDefinitionConfiguration
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry; //导入依赖的package包/类
private void validateFlowDefinitionConfiguration(final FlowDefinitionRegistry flowDefinitionRegistry) {
if (flowDefinitionRegistry.getFlowDefinitionCount() <= 0) {
throw new IllegalArgumentException("Flow definition registry has no flow definitions");
}
final String msg = "CAS application context cannot find bean [%s]. "
+ "This typically indicates that configuration is attempting to activate trusted-device functionality for "
+ "multifactor authentication, yet the configuration modules that auto-configure the webflow are absent "
+ "from the CAS application runtime.";
if (!applicationContext.containsBean(MFA_SET_TRUST_ACTION_BEAN_ID)) {
throw new IllegalArgumentException(String.format(msg, MFA_SET_TRUST_ACTION_BEAN_ID));
}
if (!applicationContext.containsBean(MFA_VERIFY_TRUST_ACTION_BEAN_ID)) {
throw new IllegalArgumentException(String.format(msg, MFA_VERIFY_TRUST_ACTION_BEAN_ID));
}
}
示例4: logoutFlowRegistry
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry; //导入依赖的package包/类
@Bean
public FlowDefinitionRegistry logoutFlowRegistry() {
final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, builder());
builder.setBasePath(BASE_CLASSPATH_WEBFLOW);
builder.addFlowLocationPattern("/logout/*-webflow.xml");
return builder.build();
}
示例5: loginFlowRegistry
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry; //导入依赖的package包/类
@Bean
public FlowDefinitionRegistry loginFlowRegistry() {
final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, builder());
builder.setBasePath(BASE_CLASSPATH_WEBFLOW);
builder.addFlowLocationPattern("/login/*-webflow.xml");
return builder.build();
}
示例6: flowExecutorViaClientFlowExecution
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry; //导入依赖的package包/类
@Bean
public FlowExecutor flowExecutorViaClientFlowExecution() {
final FlowDefinitionRegistry loginFlowRegistry = loginFlowRegistry();
final ClientFlowExecutionRepository repository = new ClientFlowExecutionRepository();
repository.setFlowDefinitionLocator(loginFlowRegistry);
repository.setTranscoder(loginFlowStateTranscoder());
final FlowExecutionImplFactory factory = new FlowExecutionImplFactory();
factory.setExecutionKeyFactory(repository);
repository.setFlowExecutionFactory(factory);
return new FlowExecutorImpl(loginFlowRegistry, factory, repository);
}
示例7: radiusFlowRegistry
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry; //导入依赖的package包/类
@Bean
public FlowDefinitionRegistry radiusFlowRegistry() {
final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
builder.setBasePath("classpath*:/webflow");
builder.addFlowLocationPattern("/mfa-radius/*-webflow.xml");
return builder.build();
}
示例8: GoogleAuthenticatorMultifactorTrustWebflowConfigurer
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry; //导入依赖的package包/类
public GoogleAuthenticatorMultifactorTrustWebflowConfigurer(final FlowBuilderServices flowBuilderServices,
final FlowDefinitionRegistry loginFlowDefinitionRegistry,
final boolean enableDeviceRegistration,
final FlowDefinitionRegistry flowDefinitionRegistry) {
super(flowBuilderServices, loginFlowDefinitionRegistry, enableDeviceRegistration);
this.flowDefinitionRegistry = flowDefinitionRegistry;
}
示例9: Pac4jWebflowConfigurer
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry; //导入依赖的package包/类
public Pac4jWebflowConfigurer(final FlowBuilderServices flowBuilderServices,
final FlowDefinitionRegistry loginFlowDefinitionRegistry,
final FlowDefinitionRegistry logoutFlowDefinitionRegistry,
final Action saml2ClientLogoutAction) {
super(flowBuilderServices, loginFlowDefinitionRegistry);
setLogoutFlowDefinitionRegistry(logoutFlowDefinitionRegistry);
this.saml2ClientLogoutAction = saml2ClientLogoutAction;
}
示例10: googleAuthenticatorFlowRegistry
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry; //导入依赖的package包/类
@Bean
public FlowDefinitionRegistry googleAuthenticatorFlowRegistry() {
final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
builder.setBasePath("classpath*:/webflow");
builder.addFlowLocationPattern("/mfa-gauth/*-webflow.xml");
return builder.build();
}
示例11: azureAuthenticatorFlowRegistry
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry; //导入依赖的package包/类
@Bean
public FlowDefinitionRegistry azureAuthenticatorFlowRegistry() {
final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
builder.setBasePath("classpath*:/webflow");
builder.addFlowLocationPattern("/mfa-azure/*-webflow.xml");
return builder.build();
}
示例12: AzureAuthenticatorMultifactorTrustWebflowConfigurer
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry; //导入依赖的package包/类
public AzureAuthenticatorMultifactorTrustWebflowConfigurer(final FlowBuilderServices flowBuilderServices,
final FlowDefinitionRegistry loginFlowDefinitionRegistry,
final boolean enableDeviceRegistration,
final FlowDefinitionRegistry flowDefinitionRegistry) {
super(flowBuilderServices, loginFlowDefinitionRegistry, enableDeviceRegistration);
this.flowDefinitionRegistry = flowDefinitionRegistry;
}
示例13: yubikeyFlowRegistry
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry; //导入依赖的package包/类
@Bean
public FlowDefinitionRegistry yubikeyFlowRegistry() {
final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
builder.setBasePath("classpath*:/webflow");
builder.addFlowLocationPattern("/mfa-yubikey/*-webflow.xml");
return builder.build();
}
示例14: authyAuthenticatorFlowRegistry
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry; //导入依赖的package包/类
@Bean
public FlowDefinitionRegistry authyAuthenticatorFlowRegistry() {
final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
builder.setBasePath("classpath*:/webflow");
builder.addFlowLocationPattern("/mfa-authy/*-webflow.xml");
return builder.build();
}
示例15: u2fFlowRegistry
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry; //导入依赖的package包/类
@Bean
public FlowDefinitionRegistry u2fFlowRegistry() {
final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
builder.setBasePath("classpath*:/webflow");
builder.addFlowLocationPattern("/mfa-u2f/*-webflow.xml");
return builder.build();
}