Package org.ofbiz.core.config
Class SecurityConfigUtil
java.lang.Object
org.ofbiz.core.config.SecurityConfigUtil
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.- Version:
- $Revision: 1.1 $
- Author:
- Rainer Hermanns
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe security config filenameprotected static Map<String,SecurityConfigUtil.SecurityInfo> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSecurityInfo(String name) Returns the security config for a given namestatic DocumentReturns the XmlDocument for the security configstatic ElementReturns the XmlRootElement for the security configstatic voidinitialize(Element rootElement) Initializes the security configuration
-
Field Details
-
SECURITY_CONFIG_XML_FILENAME
The security config filename- See Also:
-
securityInfos
-
-
Constructor Details
-
SecurityConfigUtil
public SecurityConfigUtil()
-
-
Method Details
-
getXmlRootElement
Returns the XmlRootElement for the security config- Throws:
GenericConfigException
-
getXmlDocument
Returns the XmlDocument for the security config- Throws:
GenericConfigException
-
initialize
Initializes the security configuration- Parameters:
rootElement-- Throws:
GenericConfigException
-
getSecurityInfo
Returns the security config for a given name- Parameters:
name-
-