Class ConfigLoader


  • public class ConfigLoader
    extends Object
    Loads configuration values from openam's admin console maintained values into pojos and registers a change listener for changes that may happen in the future .
    • Constructor Detail

      • ConfigLoader

        @Inject
        public ConfigLoader​(@Named("RadiusServer")
                            ServiceConfigManager serviceConfigManager)
        Constructor.
        Parameters:
        serviceConfigManager - - Service config manager from which RADIUS Server config may be loaded.
    • Method Detail

      • loadConfig

        public RadiusServiceConfig loadConfig()
        Loads the configured global RADIUS Service values and declared clients as specified in openAM's admin console via registration of those properties via the amRadiusServer.xml file. We load them here into simple pojos for caching in memory. If we are unable to do so this method will return a null value.
        Returns:
        an object containing the configuration parameters for the radius service, or null if the config can't be loaded.