public class JaasConfiguration extends Configuration implements NurseryService
Configuration
that makes it possible to inject AppConfigurationEntry
's using nursery.
This class makes it easy for plugins to for instance provide their own LoginModule
without
requiring changes to jaas.config.Modifier and Type | Class and Description |
---|---|
static interface |
JaasConfiguration.AppConfigurationEntryBuilder
A helper class for building
AppConfigurationEntry 's. |
Configuration.Parameters
Constructor and Description |
---|
JaasConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguration(String pName,
JaasConfiguration.AppConfigurationEntryBuilder[] pEntries) |
void |
doStartService()
This method is called after a
NurseryService has been created, placed in Nursery , and initialized with its configured property values. |
void |
doStopService()
This method is called whenever
Nursery determines that a NurseryService must be shut down. |
AppConfigurationEntry[] |
getAppConfigurationEntry(String pName) |
Map<String,JaasConfiguration.AppConfigurationEntryBuilder[]> |
getConfigurationMap() |
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, refresh, setConfiguration
public void addConfiguration(String pName, JaasConfiguration.AppConfigurationEntryBuilder[] pEntries)
public Map<String,JaasConfiguration.AppConfigurationEntryBuilder[]> getConfigurationMap()
public void doStartService() throws Exception
NurseryService
This method is called after a NurseryService
has been created, placed in Nursery
, and initialized with its configured property values.
The NurseryService
can override this method to start any processes it requires.
This method is also called when a NurseryService
is reconfigured. In such cases, NurseryService.doStopService()
is called, then the appropriate properties are
set with the new configuration values, and NurseryService.doStartService()
is called.
doStartService
in interface NurseryService
Exception
- when an error occurs while attempting to start the NurseryService
public void doStopService() throws Exception
NurseryService
This method is called whenever Nursery
determines that a NurseryService
must be shut down. This may happen due to an explicit
command from the administrator, or it may happen because Nursery
is shutting down. The NurseryService
should respond by stopping
any processes that it has started.
This method is also called when a NurseryService
is reconfigured. In such cases, NurseryService.doStopService()
is called, then the appropriate properties are
set with the new configuration values, and NurseryService.doStartService()
is called.
doStopService
in interface NurseryService
Exception
- when an error occurs while attempting to stop the NurseryService
public AppConfigurationEntry[] getAppConfigurationEntry(String pName)
getAppConfigurationEntry
in class Configuration
© 1998- 2021 Escenic AS