Class DynamicConfiguration


  • public class DynamicConfiguration
    extends Configuration
    A dynamic JAAS configuration.

    Makes it possible to define Application Configuration Entries (ACEs) at runtime, building upon an (optional) underlying configuration. Entries from the underlying configuration take precedence over dynamic entries.

    • Field Detail

      • LOG

        protected static final org.slf4j.Logger LOG
    • Constructor Detail

      • DynamicConfiguration

        public DynamicConfiguration​(@Nullable
                                    Configuration delegate)
        Create a dynamic configuration.
        Parameters:
        delegate - an underlying configuration to delegate to, or null.
    • Method Detail

      • addAppConfigurationEntry

        public void addAppConfigurationEntry​(String name,
                                             AppConfigurationEntry... entry)
        Add entries for the given application name.
      • getAppConfigurationEntry

        public AppConfigurationEntry[] getAppConfigurationEntry​(String name)
        Retrieve the AppConfigurationEntries for the specified name from this Configuration.
        Specified by:
        getAppConfigurationEntry in class Configuration
        Parameters:
        name - the name used to index the Configuration.
        Returns:
        an array of AppConfigurationEntries for the specified name from this Configuration, or null if there are no entries for the specified name