|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.security.auth.login.Configuration
org.n52.security.authentication.config.ConfigurationDecorator
public class ConfigurationDecorator
Class ConfigurationDecorator represents a decorator for a JAAS-Configuration.
It does not implement any kind of external configuration. It wrapps(decorates) another Configuration class and delegates all methods to this instance. It can be used to create chains of configurations or to change the behavior of the decorated configuration. It also provides a 'weak' mode. In this mode only a weak reference to the wrapped configuration is stored and therewith the decorated instance can be garbaged. This mode can be used for advanced application requirements.
Constructor Summary | |
---|---|
ConfigurationDecorator(javax.security.auth.login.Configuration configuration)
Creates a new AbstractConfigurationDecorator instance delegating to the given Configuration instance. |
|
ConfigurationDecorator(javax.security.auth.login.Configuration configuration,
boolean weak)
Creates a new AbstractConfigurationDecorator instance delegating to the given Configuration instance. |
Method Summary | |
---|---|
javax.security.auth.login.AppConfigurationEntry[] |
getAppConfigurationEntry(java.lang.String applicationName)
Method getAppConfigurationEntry returns the AppConfigurationEntries for an application name by delegateing to the referenced configuration. |
javax.security.auth.login.Configuration |
getDelegationConfiguration()
Returns the underlying configuration object. |
void |
refresh()
Refreshs the configuration by delegating to the referenced Configuration. |
void |
setDelegationConfiguration(javax.security.auth.login.Configuration configuration)
Method sets the underlying configuration object. |
void |
setDelegationConfiguration(javax.security.auth.login.Configuration configuration,
boolean weak)
Method sets the underlying configuration object. |
Methods inherited from class javax.security.auth.login.Configuration |
---|
getConfiguration, setConfiguration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationDecorator(javax.security.auth.login.Configuration configuration)
configuration
- of type Configurationpublic ConfigurationDecorator(javax.security.auth.login.Configuration configuration, boolean weak)
configuration
- of type Configuration, can be null.weak
- of type boolean, if true only a WeakReference
is stored to the given Configuration.Method Detail |
---|
public javax.security.auth.login.Configuration getDelegationConfiguration()
public void setDelegationConfiguration(javax.security.auth.login.Configuration configuration, boolean weak)
configuration
- of type Configuration, this can be null to unset the delegation configuration.weak
- of type boolean, if true only a WeakReference
is stored to the given Configuration.public void setDelegationConfiguration(javax.security.auth.login.Configuration configuration)
configuration
- of type Configuration.public void refresh()
refresh
in class javax.security.auth.login.Configuration
Configuration.refresh()
public javax.security.auth.login.AppConfigurationEntry[] getAppConfigurationEntry(java.lang.String applicationName)
getAppConfigurationEntry
in class javax.security.auth.login.Configuration
applicationName
- of type String a index name to the configuration of the calling application.
Configuration.getAppConfigurationEntry(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |