org.ofbiz.base.config
Class SecurityConfigUtil

java.lang.Object
  extended by org.ofbiz.base.config.SecurityConfigUtil

public class SecurityConfigUtil
extends java.lang.Object

SecurityConfigUtil This class allows the loading of a security implementation by a security context name. The security context name has to be specified in security.properties by the property name: security.context= The setup of custom security implementations can be customized in the security.xml file.


Nested Class Summary
static class SecurityConfigUtil.SecurityInfo
          SecurityInfo
 
Field Summary
static java.lang.String module
           
static java.lang.String SECURITY_CONFIG_XML_FILENAME
          The security config filename
protected static java.util.Map<java.lang.String,SecurityConfigUtil.SecurityInfo> securityInfos
           
 
Constructor Summary
SecurityConfigUtil()
           
 
Method Summary
static SecurityConfigUtil.SecurityInfo getSecurityInfo(java.lang.String name)
          Returns the security config for a given name.
static org.w3c.dom.Document getXmlDocument()
          Returns the XmlDocument for the security config.
static org.w3c.dom.Element getXmlRootElement()
          Returns the XmlRootElement for the security config.
static void initialize(org.w3c.dom.Element rootElement)
          Initializes the security configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

SECURITY_CONFIG_XML_FILENAME

public static final java.lang.String SECURITY_CONFIG_XML_FILENAME
The security config filename

See Also:
Constant Field Values

securityInfos

protected static java.util.Map<java.lang.String,SecurityConfigUtil.SecurityInfo> securityInfos
Constructor Detail

SecurityConfigUtil

public SecurityConfigUtil()
Method Detail

getXmlRootElement

public static org.w3c.dom.Element getXmlRootElement()
                                             throws GenericConfigException
Returns the XmlRootElement for the security config.

Returns:
the root element for the security config
Throws:
GenericConfigException

getXmlDocument

public static org.w3c.dom.Document getXmlDocument()
                                           throws GenericConfigException
Returns the XmlDocument for the security config.

Returns:
the Document descripting the security config
Throws:
GenericConfigException

initialize

public static void initialize(org.w3c.dom.Element rootElement)
                       throws GenericConfigException
Initializes the security configuration.

Parameters:
rootElement -
Throws:
GenericConfigException

getSecurityInfo

public static SecurityConfigUtil.SecurityInfo getSecurityInfo(java.lang.String name)
Returns the security config for a given name.

Parameters:
name -
Returns:
the found SecurityInfo