harini-nagarajan-5578 / owasp-esapi-java

Automatically exported from code.google.com/p/owasp-esapi-java
Other
3 stars 0 forks source link

Add Constructor to DefaultSecurityConfiguration to accept a properties file (1.4) #264

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Add constructor to DefaultSecurityConfiguration to accept 
a Properties object as a parameter and load properties from that object.  This 
will allow different ESAPI.properties files on the web application level.  The 
current method of loading ESAPI.properties is system wide, and different web 
apps could have different needs, thus different ESAPI.properties files may be 
needed.  
This is the constructor that was added.  The "logLoadedProperties" is an 
additional private method to log the loaded properties and can be called from 
either the new constructor or the existing one.

/**
 * Instantiates a new configuration from a Properties object
 */
public DefaultSecurityConfiguration(Properties p) {

  this.properties = p;
  this.logLoadedProperties();

}

Milestone 2.1

Original issue reported on code.google.com by christof...@gmail.com on 26 Feb 2012 at 11:09

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by M.Gelma...@gmail.com on 13 Nov 2014 at 6:21