|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.idoox.security.Config
This class represents configuration properties for the security classes.
It can be initialized manually using init()
method or on demand
when the first getProperty
method is called.
When on demand intialization is used, the location of the property file
is determined from the idoox.security.config
system property.
If this file is not found or the property is not set, it uses default
property file included in the distribution of standalone security module.
The location of the property file can specified either as filename with path or as URL with scheme resource:. For the later case, the ClassLoader is used to load property file using classpath.
Constructor Summary | |
Config()
|
Method Summary | |
static java.lang.String |
getId()
Returns id of this configuration. |
static java.lang.ClassLoader |
getImplClassLoader()
Returns class loader for these configuration. |
static java.util.Properties |
getProperties()
Returns a copy of current of security properties. |
static java.lang.String |
getProperty(java.lang.String key)
Returns property value for given name. |
static java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Returns property value for given name. |
static void |
init(java.util.Properties properties,
java.lang.ClassLoader implLoader)
Method for explicit initialization of this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Config()
Method Detail |
public static java.lang.String getProperty(java.lang.String key)
null
if property is not found.
key
- the property key
public static java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
key
- the property keydefaultValue
- a default value
public static java.util.Properties getProperties()
public static java.lang.ClassLoader getImplClassLoader()
public static java.lang.String getId()
public static void init(java.util.Properties properties, java.lang.ClassLoader implLoader)
Note that this method can be called before any other method on this class
is called and only one time, RuntimeException
is thrown
otherwise.
The common property keys are:
security.provider.
properties
- properties containing the configuration for the
security classes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |