Class InMemoryConfiguration
java.lang.Object
javax.security.auth.login.Configuration
org.springframework.security.authentication.jaas.memory.InMemoryConfiguration
An in memory representation of a JAAS configuration. The constructor accepts a Map
where the key represents the name of the login context name and the value is an Array
of AppConfigurationEntry for that login context name. A default Array of
AppConfigurationEntrys can be specified which will be returned if a login
context is specified which is undefined.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.security.auth.login.Configuration
Configuration.Parameters -
Constructor Summary
ConstructorsConstructorDescriptionInMemoryConfiguration(Map<String, AppConfigurationEntry[]> mappedConfigurations) Creates a new instance with a mapping of login context name to an array ofAppConfigurationEntrys.InMemoryConfiguration(Map<String, AppConfigurationEntry[]> mappedConfigurations, AppConfigurationEntry[] defaultConfiguration) Creates a new instance with a mapping of login context name to an array ofAppConfigurationEntrys along with a default configuration that will be used if no mapping is found for the given login context name.InMemoryConfiguration(AppConfigurationEntry[] defaultConfiguration) Creates a new instance with only a defaultConfiguration. -
Method Summary
Methods inherited from class javax.security.auth.login.Configuration
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, setConfiguration
-
Constructor Details
-
InMemoryConfiguration
Creates a new instance with only a defaultConfiguration. Any configuration name will result in defaultConfiguration being returned.- Parameters:
defaultConfiguration- The result for any calls togetAppConfigurationEntry(String). Can benull.
-
InMemoryConfiguration
Creates a new instance with a mapping of login context name to an array ofAppConfigurationEntrys.- Parameters:
mappedConfigurations- each key represents a login context name and each value is an Array ofAppConfigurationEntrys that should be used.
-
InMemoryConfiguration
public InMemoryConfiguration(Map<String, AppConfigurationEntry[]> mappedConfigurations, AppConfigurationEntry[] defaultConfiguration) Creates a new instance with a mapping of login context name to an array ofAppConfigurationEntrys along with a default configuration that will be used if no mapping is found for the given login context name.- Parameters:
mappedConfigurations- each key represents a login context name and each value is an Array ofAppConfigurationEntrys that should be used.defaultConfiguration- The result for any calls togetAppConfigurationEntry(String). Can benull.
-
-
Method Details
-
getAppConfigurationEntry
- Specified by:
getAppConfigurationEntryin classConfiguration
-
refresh
public void refresh()Does nothing, but required for JDK5- Overrides:
refreshin classConfiguration
-