/** * Set the description to be used for the provider once registered. * * @param description the description to be used for the provider once registered. * @return this {@link JaspiConfigurationBuilder} to allow chaining of commands. * @throws IllegalStateException if the configuration has already been registered. */ public JaspiConfigurationBuilder setDescription(final String description) { assertNotRegistered(); this.description = description; return this; }
/** * Add a {@link Supplier<ServerAuthModule>} to be used to create a {@link ServerAuthModule} instance for this message layer * and application context combination. * * @param serverAuthModuleFactory the {@link Supplier<ServerAuthModule>} to be added to the list of module factories. * @param flag the flag to control the handling of the auth module. * @param options the configuration options to pass to the module during initialisation. * @return this {@link JaspiConfigurationBuilder} to allow chaining of commands. * @throws IllegalStateException if the configuration has already been registered. */ public JaspiConfigurationBuilder addAuthModuleFactory(final Supplier<ServerAuthModule> serverAuthModuleFactory, final Flag flag, final Map options) { assertNotRegistered(); serverAuthModules.add(new AuthenticationModuleDefinition(serverAuthModuleFactory, flag, options)); return this; }
/** * Register the assembled configuration against the supplied {@link AuthConfigFactory}. * * @param authConfigFactory the {@link AuthConfigFactory} to register the configuration against. * @return The registration ID returned by the factory on registration. * @throws IllegalStateException if the configuration has already been registered. */ public String register(AuthConfigFactory authConfigFactory) { assertNotRegistered(); registered = true; return authConfigFactory.registerConfigProvider( new ElytronAuthConfigProvider(messageLayer, applicationContext, serverAuthModules), messageLayer, applicationContext, description); }
/** * Set the description to be used for the provider once registered. * * @param description the description to be used for the provider once registered. * @return this {@link JaspiConfigurationBuilder} to allow chaining of commands. * @throws IllegalStateException if the configuration has already been registered. */ public JaspiConfigurationBuilder setDescription(final String description) { assertNotRegistered(); this.description = description; return this; }
/** * Set the description to be used for the provider once registered. * * @param description the description to be used for the provider once registered. * @return this {@link JaspiConfigurationBuilder} to allow chaining of commands. * @throws IllegalStateException if the configuration has already been registered. */ public JaspiConfigurationBuilder setDescription(final String description) { assertNotRegistered(); this.description = description; return this; }
/** * Add a {@link Supplier<ServerAuthModule>} to be used to create a {@link ServerAuthModule} instance for this message layer * and application context combination. * * @param serverAuthModuleFactory the {@link Supplier<ServerAuthModule>} to be added to the list of module factories. * @param flag the flag to control the handling of the auth module. * @param options the configuration options to pass to the module during initialisation. * @return this {@link JaspiConfigurationBuilder} to allow chaining of commands. * @throws IllegalStateException if the configuration has already been registered. */ public JaspiConfigurationBuilder addAuthModuleFactory(final Supplier<ServerAuthModule> serverAuthModuleFactory, final Flag flag, final Map options) { assertNotRegistered(); serverAuthModules.add(new AuthenticationModuleDefinition(serverAuthModuleFactory, flag, options)); return this; }
/** * Add a {@link Supplier<ServerAuthModule>} to be used to create a {@link ServerAuthModule} instance for this message layer * and application context combination. * * @param serverAuthModuleFactory the {@link Supplier<ServerAuthModule>} to be added to the list of module factories. * @param flag the flag to control the handling of the auth module. * @param options the configuration options to pass to the module during initialisation. * @return this {@link JaspiConfigurationBuilder} to allow chaining of commands. * @throws IllegalStateException if the configuration has already been registered. */ public JaspiConfigurationBuilder addAuthModuleFactory(final Supplier<ServerAuthModule> serverAuthModuleFactory, final Flag flag, final Map options) { assertNotRegistered(); serverAuthModules.add(new AuthenticationModuleDefinition(serverAuthModuleFactory, flag, options)); return this; }
/** * Register the assembled configuration against the supplied {@link AuthConfigFactory}. * * @param authConfigFactory the {@link AuthConfigFactory} to register the configuration against. * @return The registration ID returned by the factory on registration. * @throws IllegalStateException if the configuration has already been registered. */ public String register(AuthConfigFactory authConfigFactory) { assertNotRegistered(); registered = true; return authConfigFactory.registerConfigProvider( new ElytronAuthConfigProvider(messageLayer, applicationContext, serverAuthModules), messageLayer, applicationContext, description); }
/** * Register the assembled configuration against the supplied {@link AuthConfigFactory}. * * @param authConfigFactory the {@link AuthConfigFactory} to register the configuration against. * @return The registration ID returned by the factory on registration. * @throws IllegalStateException if the configuration has already been registered. */ public String register(AuthConfigFactory authConfigFactory) { assertNotRegistered(); registered = true; return authConfigFactory.registerConfigProvider( new ElytronAuthConfigProvider(messageLayer, applicationContext, serverAuthModules), messageLayer, applicationContext, description); }