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
Original issue reported on code.google.com by
christof...@gmail.com
on 26 Feb 2012 at 11:09Attachments: