org.idoox.security
Class SecurityConfigs

java.lang.Object
  extended byorg.idoox.security.SecurityConfigs

public final class SecurityConfigs
extends java.lang.Object

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.

Since:
3.0
Component:
Security-Core

Constructor Summary
SecurityConfigs()
           
 
Method Summary
static SecurityConfig getLocalSecurityConfig(java.lang.String id)
          Returns local security settings.
static SecurityConfig getSecurityConfig()
          Returns global security setting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityConfigs

public SecurityConfigs()
Method Detail

getSecurityConfig

public static SecurityConfig getSecurityConfig()
Returns global security setting. There is one global security setting and one local security setting for each wasp instance. Local security setting overrides global security settings.

Returns:
global security settings.

getLocalSecurityConfig

public static SecurityConfig getLocalSecurityConfig(java.lang.String id)
Returns local security settings.

Parameters:
id - coffiguration of SecurityConfig object.
Returns:
local security settings