public final class JaspiConfigurationBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
JaspiConfigurationBuilder |
addAuthModuleFactory(Supplier<ServerAuthModule> serverAuthModuleFactory)
Add a
Supplier to be used to create a ServerAuthModule instance for this message layer
and application context combination. |
JaspiConfigurationBuilder |
addAuthModuleFactory(Supplier<ServerAuthModule> serverAuthModuleFactory,
Flag flag,
Map options)
Add a
Supplier to be used to create a ServerAuthModule instance for this message layer
and application context combination. |
static JaspiConfigurationBuilder |
builder(String messageLayer,
String applicationContext) |
String |
register()
Register the assembled configuration against the system wide
AuthConfigFactory. |
String |
register(AuthConfigFactory authConfigFactory)
Register the assembled configuration against the supplied
AuthConfigFactory. |
JaspiConfigurationBuilder |
setDescription(String description)
Set the description to be used for the provider once registered.
|
public JaspiConfigurationBuilder setDescription(String description)
description - the description to be used for the provider once registered.JaspiConfigurationBuilder to allow chaining of commands.IllegalStateException - if the configuration has already been registered.public JaspiConfigurationBuilder addAuthModuleFactory(Supplier<ServerAuthModule> serverAuthModuleFactory)
Supplier to be used to create a ServerAuthModule instance for this message layer
and application context combination.serverAuthModuleFactory - the Supplier to be added to the list of module factories.JaspiConfigurationBuilder to allow chaining of commands.IllegalStateException - if the configuration has already been registered.public JaspiConfigurationBuilder addAuthModuleFactory(Supplier<ServerAuthModule> serverAuthModuleFactory, Flag flag, Map options)
Supplier to be used to create a ServerAuthModule instance for this message layer
and application context combination.serverAuthModuleFactory - the Supplier to be added to the list of module factories.flag - the flag to control the handling of the auth module.options - the configuration options to pass to the module during initialisation.JaspiConfigurationBuilder to allow chaining of commands.IllegalStateException - if the configuration has already been registered.public String register()
AuthConfigFactory.IllegalStateException - if the configuration has already been registered.public String register(AuthConfigFactory authConfigFactory)
AuthConfigFactory.authConfigFactory - the AuthConfigFactory to register the configuration against.IllegalStateException - if the configuration has already been registered.public static JaspiConfigurationBuilder builder(String messageLayer, String applicationContext)
Copyright © 2019 JBoss by Red Hat. All rights reserved.