|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.idoox.security.SecurityConfig
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 | |
SecurityConfig()
|
Method Summary | |
java.lang.String |
getId()
Returns id of this object. |
java.lang.ClassLoader |
getImplClassLoader()
|
java.util.Properties |
getProperties()
Returns a copy of current of security properties. |
java.lang.String |
getProperty(java.lang.String key)
Returns property value for given name. |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Returns property value for given name. |
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 SecurityConfig()
Method Detail |
public java.lang.String getProperty(java.lang.String key)
null
if property is not found.
key
- the property key
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
key
- the property keydefaultValue
- a default value
public java.util.Properties getProperties()
public java.lang.ClassLoader getImplClassLoader()
public 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.public java.lang.String getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |