org.ofbiz.security
Class SecurityFactory

java.lang.Object
  extended by org.ofbiz.security.SecurityFactory

public class SecurityFactory
extends java.lang.Object

SecurityFactory This Factory class returns an instance of a security implementation. Setting the security implementation className is done in security.xml. If no customiz security name is given, the default implementation will be used (OFBizSecurity)


Field Summary
static java.lang.String DEFAULT_SECURITY
           
static java.lang.String module
           
 
Constructor Summary
SecurityFactory()
           
 
Method Summary
static Security getInstance(GenericDelegator delegator)
          Returns an instance of a Security implementation as defined in the security.xml by defined name in security.properties.
 
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

DEFAULT_SECURITY

public static final java.lang.String DEFAULT_SECURITY
See Also:
Constant Field Values
Constructor Detail

SecurityFactory

public SecurityFactory()
Method Detail

getInstance

public static Security getInstance(GenericDelegator delegator)
                            throws SecurityConfigurationException
Returns an instance of a Security implementation as defined in the security.xml by defined name in security.properties.

Parameters:
delegator - the generic delegator
Returns:
instance of security implementation (default: OFBizSecurity)
Throws:
SecurityConfigurationException