|
spring-security-core | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.security.auth.login.Configuration
org.springframework.security.authentication.jaas.memory.InMemoryConfiguration
public class 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 | |
|---|---|
InMemoryConfiguration(AppConfigurationEntry[] defaultConfiguration)
Creates a new instance with only a defaultConfiguration. |
|
InMemoryConfiguration(Map<String,AppConfigurationEntry[]> mappedConfigurations)
Creates a new instance with a mapping of login context name to an array of AppConfigurationEntrys. |
|
InMemoryConfiguration(Map<String,AppConfigurationEntry[]> mappedConfigurations,
AppConfigurationEntry[] defaultConfiguration)
Creates a new instance with a mapping of login context name to an array of AppConfigurationEntrys along with a default configuration that
will be used if no mapping is found for the given login context name. |
|
| Method Summary | |
|---|---|
AppConfigurationEntry[] |
getAppConfigurationEntry(String name)
|
void |
refresh()
Does nothing, but required for JDK5 |
| Methods inherited from class javax.security.auth.login.Configuration |
|---|
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, setConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InMemoryConfiguration(AppConfigurationEntry[] defaultConfiguration)
defaultConfiguration - The result for any calls to
getAppConfigurationEntry(String). Can be
null.public InMemoryConfiguration(Map<String,AppConfigurationEntry[]> mappedConfigurations)
AppConfigurationEntrys.
mappedConfigurations - each key represents a login context name and each value is an
Array of AppConfigurationEntrys that should be used.
public InMemoryConfiguration(Map<String,AppConfigurationEntry[]> mappedConfigurations,
AppConfigurationEntry[] defaultConfiguration)
AppConfigurationEntrys along with a default configuration that
will be used if no mapping is found for the given login context name.
mappedConfigurations - each key represents a login context name and each value is an
Array of AppConfigurationEntrys that should be used.defaultConfiguration - The result for any calls to
getAppConfigurationEntry(String). Can be
null.| Method Detail |
|---|
public AppConfigurationEntry[] getAppConfigurationEntry(String name)
getAppConfigurationEntry in class Configurationpublic void refresh()
refresh in class Configuration
|
spring-security-core | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||