<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.owasp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kevin.Fealey</id>
		<title>OWASP - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.owasp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kevin.Fealey"/>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php/Special:Contributions/Kevin.Fealey"/>
		<updated>2026-04-04T00:10:45Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.2</generator>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=61414</id>
		<title>ESAPI Javadocs</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=61414"/>
				<updated>2009-05-22T17:14:14Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Latest Javadocs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Latest Javadocs==&lt;br /&gt;
The latest Javadocs for the ESAPI can be found [http://owasp-esapi-java.googlecode.com/svn/trunk_doc/index.html here].&lt;br /&gt;
&lt;br /&gt;
==How to create Javadocs for ESAPI using Eclipse v3.4==&lt;br /&gt;
First off, notice a folder called &amp;quot;javadoc resources&amp;quot; in the root directory of your ESAPI project.  This folder contains images referenced from the Javadoc as well as overview-summary.html, which is the title page for the ESAPI Javadoc.  The instructions below make reference to these files.&lt;br /&gt;
[[category:FIXME|image links not working]]&lt;br /&gt;
===To Generate Javadocs===&lt;br /&gt;
# ''Be sure you are in the Java EE perspective.''  To change your perspective, click the ''Window'' button on the main toolbar.  Then click ''Open Perspective'' and choose ''Java EE''.  If Java EE is not in the list, select ''Other...'' and find ''Java EE''.  If Java EE is not in the list under Other, you may need to download Eclipse Ganymede (v3.4) for Java EE developers.  Javadoc creation functionality may be built into your version of Eclipse, but that has not been tested.&lt;br /&gt;
# Then, click the ''Project'' button on the main toolbar.  Select ''Generate Javadoc...''&lt;br /&gt;
# Find the Javadoc executable to use.  This is usually javadoc.exe within your java bin directory, as shown in figure 1.&lt;br /&gt;
# Select the ESAPI source, but not the test files within your ESAPI project, as shown in figure 1.&lt;br /&gt;
# You should create Javadoc for members with visibility: Package, as shown in figure 1.&lt;br /&gt;
# Select the Javadoc output directory.  This will likely be /doc under your ESAPI project folder.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 1:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc1.jpg&lt;br /&gt;
&lt;br /&gt;
# Designate a title for this Javadoc.  Generally, this should be &amp;quot;OWASP Enterprise Security API (ESAPI)&amp;quot;.&lt;br /&gt;
# Use Default: Under Basic Options, make sure all checkboxes are selected, as shown in Figure 2.&lt;br /&gt;
# Use Default: Make sure Javadocs for referenced archives are not generated, as shown in Figure 2.&lt;br /&gt;
# Use Default: No custom style sheet should be specified, as shown in Figure 2.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 2:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc2.jpg&lt;br /&gt;
&lt;br /&gt;
# ''The Overview page must be selected, as shown in Figure 3''.  ''It should point to overview-summary.html in the javadoc resources folder''.&lt;br /&gt;
# Use Default: The JRE source compatibility should be selected as 1.4, as shown in Figure 3.&lt;br /&gt;
# Click ''Finish''.&lt;br /&gt;
&lt;br /&gt;
Figure 3: &lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc3.jpg&lt;br /&gt;
&lt;br /&gt;
# If it isn't already there, copy the folder &amp;quot;doc-files&amp;quot; from &amp;quot;javadoc resources&amp;quot; to org/owasp/esapi within your new javadoc directory.&lt;br /&gt;
# To view these new javadocs, double click on: &amp;lt;yourdocsfolder&amp;gt;/index.html&lt;br /&gt;
&lt;br /&gt;
=== Submitting these new javadocs to SVN ===&lt;br /&gt;
# To submit these newly generated javadocs, simply use Team --&amp;gt; Commit in Eclipse. Note: Please check in updates into the existing /doc directory, rather than creating a new directory.&lt;br /&gt;
# If you receive version control errors during the submit, follow the following steps:&lt;br /&gt;
* Navigate to your ESAPI Project/doc/org/owasp/esapi/doc-files directory.&lt;br /&gt;
* Delete the folder called .svn from this folder and all subdirectories (wiki).&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to svn:ignore...&amp;quot;.&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder again and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to Version Control&amp;quot;.  You should receive a message saying that you previously asked to ignore this file.  Click yes.&lt;br /&gt;
&lt;br /&gt;
== Why do my newly generated Javadocs render as plain text in my browser? ==&lt;br /&gt;
Unfortunately, using this method of Javadoc generation does not set MIME types for the HTML files generated.  This means that to the browser, your HTML files are just text files, and will display as such.  Luckily Subclipse has a function to fix this.  We are going to tell Subclipse to automatically set the MIME type of HTML files to text/html and the MIME type of CSS files to text/css every time it commits a change.&lt;br /&gt;
&lt;br /&gt;
# The first thing you need to do is enable auto properties for your SVN client.  If you do not enable auto properties, you will have to manually set the properties (MIME type) of every HTML and CSS file.&lt;br /&gt;
* In Windows, open a terminal by typing &amp;quot;cmd&amp;quot; (with no quotes) into &amp;quot;Run&amp;quot; on the Start menu.  If you are using Vista, you can type &amp;quot;cmd&amp;quot; directly into the &amp;quot;Start Searching&amp;quot; bar.&lt;br /&gt;
* Type (again, and from now on, with no quotes) &amp;quot;cd %APPDATA%&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;cd Subversion&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;notepad config&amp;quot;. This will open the SVN configuration file in notepad.&lt;br /&gt;
* Find the line &amp;quot;enable-auto-props = yes&amp;quot; and remove the # from the front of it.  This enables auto properties.&lt;br /&gt;
# Then, tell Subversion which MIME types to set for which files:&lt;br /&gt;
* Towards the bottom of the file, find a section called ''[auto-props]''.  Add the following to this section:&lt;br /&gt;
     *.html = svn:mime-type=text/html&lt;br /&gt;
     *.css = svn:mime-type=text/css&lt;br /&gt;
# Save the file.&lt;br /&gt;
''Any further commits to the SVN should set the MIME type properly.''&lt;br /&gt;
&lt;br /&gt;
Your Javadoc should be ready to commit and view!&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=61413</id>
		<title>ESAPI Javadocs</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=61413"/>
				<updated>2009-05-22T17:13:40Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Latest Javadocs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Latest Javadocs==&lt;br /&gt;
The latest Javadocs for the ESAPI can be found [here http://owasp-esapi-java.googlecode.com/svn/trunk_doc/index.html]&lt;br /&gt;
&lt;br /&gt;
==How to create Javadocs for ESAPI using Eclipse v3.4==&lt;br /&gt;
First off, notice a folder called &amp;quot;javadoc resources&amp;quot; in the root directory of your ESAPI project.  This folder contains images referenced from the Javadoc as well as overview-summary.html, which is the title page for the ESAPI Javadoc.  The instructions below make reference to these files.&lt;br /&gt;
[[category:FIXME|image links not working]]&lt;br /&gt;
===To Generate Javadocs===&lt;br /&gt;
# ''Be sure you are in the Java EE perspective.''  To change your perspective, click the ''Window'' button on the main toolbar.  Then click ''Open Perspective'' and choose ''Java EE''.  If Java EE is not in the list, select ''Other...'' and find ''Java EE''.  If Java EE is not in the list under Other, you may need to download Eclipse Ganymede (v3.4) for Java EE developers.  Javadoc creation functionality may be built into your version of Eclipse, but that has not been tested.&lt;br /&gt;
# Then, click the ''Project'' button on the main toolbar.  Select ''Generate Javadoc...''&lt;br /&gt;
# Find the Javadoc executable to use.  This is usually javadoc.exe within your java bin directory, as shown in figure 1.&lt;br /&gt;
# Select the ESAPI source, but not the test files within your ESAPI project, as shown in figure 1.&lt;br /&gt;
# You should create Javadoc for members with visibility: Package, as shown in figure 1.&lt;br /&gt;
# Select the Javadoc output directory.  This will likely be /doc under your ESAPI project folder.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 1:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc1.jpg&lt;br /&gt;
&lt;br /&gt;
# Designate a title for this Javadoc.  Generally, this should be &amp;quot;OWASP Enterprise Security API (ESAPI)&amp;quot;.&lt;br /&gt;
# Use Default: Under Basic Options, make sure all checkboxes are selected, as shown in Figure 2.&lt;br /&gt;
# Use Default: Make sure Javadocs for referenced archives are not generated, as shown in Figure 2.&lt;br /&gt;
# Use Default: No custom style sheet should be specified, as shown in Figure 2.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 2:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc2.jpg&lt;br /&gt;
&lt;br /&gt;
# ''The Overview page must be selected, as shown in Figure 3''.  ''It should point to overview-summary.html in the javadoc resources folder''.&lt;br /&gt;
# Use Default: The JRE source compatibility should be selected as 1.4, as shown in Figure 3.&lt;br /&gt;
# Click ''Finish''.&lt;br /&gt;
&lt;br /&gt;
Figure 3: &lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc3.jpg&lt;br /&gt;
&lt;br /&gt;
# If it isn't already there, copy the folder &amp;quot;doc-files&amp;quot; from &amp;quot;javadoc resources&amp;quot; to org/owasp/esapi within your new javadoc directory.&lt;br /&gt;
# To view these new javadocs, double click on: &amp;lt;yourdocsfolder&amp;gt;/index.html&lt;br /&gt;
&lt;br /&gt;
=== Submitting these new javadocs to SVN ===&lt;br /&gt;
# To submit these newly generated javadocs, simply use Team --&amp;gt; Commit in Eclipse. Note: Please check in updates into the existing /doc directory, rather than creating a new directory.&lt;br /&gt;
# If you receive version control errors during the submit, follow the following steps:&lt;br /&gt;
* Navigate to your ESAPI Project/doc/org/owasp/esapi/doc-files directory.&lt;br /&gt;
* Delete the folder called .svn from this folder and all subdirectories (wiki).&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to svn:ignore...&amp;quot;.&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder again and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to Version Control&amp;quot;.  You should receive a message saying that you previously asked to ignore this file.  Click yes.&lt;br /&gt;
&lt;br /&gt;
== Why do my newly generated Javadocs render as plain text in my browser? ==&lt;br /&gt;
Unfortunately, using this method of Javadoc generation does not set MIME types for the HTML files generated.  This means that to the browser, your HTML files are just text files, and will display as such.  Luckily Subclipse has a function to fix this.  We are going to tell Subclipse to automatically set the MIME type of HTML files to text/html and the MIME type of CSS files to text/css every time it commits a change.&lt;br /&gt;
&lt;br /&gt;
# The first thing you need to do is enable auto properties for your SVN client.  If you do not enable auto properties, you will have to manually set the properties (MIME type) of every HTML and CSS file.&lt;br /&gt;
* In Windows, open a terminal by typing &amp;quot;cmd&amp;quot; (with no quotes) into &amp;quot;Run&amp;quot; on the Start menu.  If you are using Vista, you can type &amp;quot;cmd&amp;quot; directly into the &amp;quot;Start Searching&amp;quot; bar.&lt;br /&gt;
* Type (again, and from now on, with no quotes) &amp;quot;cd %APPDATA%&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;cd Subversion&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;notepad config&amp;quot;. This will open the SVN configuration file in notepad.&lt;br /&gt;
* Find the line &amp;quot;enable-auto-props = yes&amp;quot; and remove the # from the front of it.  This enables auto properties.&lt;br /&gt;
# Then, tell Subversion which MIME types to set for which files:&lt;br /&gt;
* Towards the bottom of the file, find a section called ''[auto-props]''.  Add the following to this section:&lt;br /&gt;
     *.html = svn:mime-type=text/html&lt;br /&gt;
     *.css = svn:mime-type=text/css&lt;br /&gt;
# Save the file.&lt;br /&gt;
''Any further commits to the SVN should set the MIME type properly.''&lt;br /&gt;
&lt;br /&gt;
Your Javadoc should be ready to commit and view!&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=61412</id>
		<title>ESAPI Javadocs</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=61412"/>
				<updated>2009-05-22T17:13:20Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Latest Javadocs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Latest Javadocs==&lt;br /&gt;
The latest Javadocs for the ESAPI can be found at: [[http://owasp-esapi-java.googlecode.com/svn/trunk_doc/index.html]]&lt;br /&gt;
&lt;br /&gt;
==How to create Javadocs for ESAPI using Eclipse v3.4==&lt;br /&gt;
First off, notice a folder called &amp;quot;javadoc resources&amp;quot; in the root directory of your ESAPI project.  This folder contains images referenced from the Javadoc as well as overview-summary.html, which is the title page for the ESAPI Javadoc.  The instructions below make reference to these files.&lt;br /&gt;
[[category:FIXME|image links not working]]&lt;br /&gt;
===To Generate Javadocs===&lt;br /&gt;
# ''Be sure you are in the Java EE perspective.''  To change your perspective, click the ''Window'' button on the main toolbar.  Then click ''Open Perspective'' and choose ''Java EE''.  If Java EE is not in the list, select ''Other...'' and find ''Java EE''.  If Java EE is not in the list under Other, you may need to download Eclipse Ganymede (v3.4) for Java EE developers.  Javadoc creation functionality may be built into your version of Eclipse, but that has not been tested.&lt;br /&gt;
# Then, click the ''Project'' button on the main toolbar.  Select ''Generate Javadoc...''&lt;br /&gt;
# Find the Javadoc executable to use.  This is usually javadoc.exe within your java bin directory, as shown in figure 1.&lt;br /&gt;
# Select the ESAPI source, but not the test files within your ESAPI project, as shown in figure 1.&lt;br /&gt;
# You should create Javadoc for members with visibility: Package, as shown in figure 1.&lt;br /&gt;
# Select the Javadoc output directory.  This will likely be /doc under your ESAPI project folder.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 1:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc1.jpg&lt;br /&gt;
&lt;br /&gt;
# Designate a title for this Javadoc.  Generally, this should be &amp;quot;OWASP Enterprise Security API (ESAPI)&amp;quot;.&lt;br /&gt;
# Use Default: Under Basic Options, make sure all checkboxes are selected, as shown in Figure 2.&lt;br /&gt;
# Use Default: Make sure Javadocs for referenced archives are not generated, as shown in Figure 2.&lt;br /&gt;
# Use Default: No custom style sheet should be specified, as shown in Figure 2.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 2:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc2.jpg&lt;br /&gt;
&lt;br /&gt;
# ''The Overview page must be selected, as shown in Figure 3''.  ''It should point to overview-summary.html in the javadoc resources folder''.&lt;br /&gt;
# Use Default: The JRE source compatibility should be selected as 1.4, as shown in Figure 3.&lt;br /&gt;
# Click ''Finish''.&lt;br /&gt;
&lt;br /&gt;
Figure 3: &lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc3.jpg&lt;br /&gt;
&lt;br /&gt;
# If it isn't already there, copy the folder &amp;quot;doc-files&amp;quot; from &amp;quot;javadoc resources&amp;quot; to org/owasp/esapi within your new javadoc directory.&lt;br /&gt;
# To view these new javadocs, double click on: &amp;lt;yourdocsfolder&amp;gt;/index.html&lt;br /&gt;
&lt;br /&gt;
=== Submitting these new javadocs to SVN ===&lt;br /&gt;
# To submit these newly generated javadocs, simply use Team --&amp;gt; Commit in Eclipse. Note: Please check in updates into the existing /doc directory, rather than creating a new directory.&lt;br /&gt;
# If you receive version control errors during the submit, follow the following steps:&lt;br /&gt;
* Navigate to your ESAPI Project/doc/org/owasp/esapi/doc-files directory.&lt;br /&gt;
* Delete the folder called .svn from this folder and all subdirectories (wiki).&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to svn:ignore...&amp;quot;.&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder again and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to Version Control&amp;quot;.  You should receive a message saying that you previously asked to ignore this file.  Click yes.&lt;br /&gt;
&lt;br /&gt;
== Why do my newly generated Javadocs render as plain text in my browser? ==&lt;br /&gt;
Unfortunately, using this method of Javadoc generation does not set MIME types for the HTML files generated.  This means that to the browser, your HTML files are just text files, and will display as such.  Luckily Subclipse has a function to fix this.  We are going to tell Subclipse to automatically set the MIME type of HTML files to text/html and the MIME type of CSS files to text/css every time it commits a change.&lt;br /&gt;
&lt;br /&gt;
# The first thing you need to do is enable auto properties for your SVN client.  If you do not enable auto properties, you will have to manually set the properties (MIME type) of every HTML and CSS file.&lt;br /&gt;
* In Windows, open a terminal by typing &amp;quot;cmd&amp;quot; (with no quotes) into &amp;quot;Run&amp;quot; on the Start menu.  If you are using Vista, you can type &amp;quot;cmd&amp;quot; directly into the &amp;quot;Start Searching&amp;quot; bar.&lt;br /&gt;
* Type (again, and from now on, with no quotes) &amp;quot;cd %APPDATA%&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;cd Subversion&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;notepad config&amp;quot;. This will open the SVN configuration file in notepad.&lt;br /&gt;
* Find the line &amp;quot;enable-auto-props = yes&amp;quot; and remove the # from the front of it.  This enables auto properties.&lt;br /&gt;
# Then, tell Subversion which MIME types to set for which files:&lt;br /&gt;
* Towards the bottom of the file, find a section called ''[auto-props]''.  Add the following to this section:&lt;br /&gt;
     *.html = svn:mime-type=text/html&lt;br /&gt;
     *.css = svn:mime-type=text/css&lt;br /&gt;
# Save the file.&lt;br /&gt;
''Any further commits to the SVN should set the MIME type properly.''&lt;br /&gt;
&lt;br /&gt;
Your Javadoc should be ready to commit and view!&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=61411</id>
		<title>ESAPI Javadocs</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=61411"/>
				<updated>2009-05-22T17:13:05Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Latest Javadocs==&lt;br /&gt;
The latest Javadocs for the ESAPI can be found at: [http://owasp-esapi-java.googlecode.com/svn/trunk_doc/index.html]&lt;br /&gt;
&lt;br /&gt;
==How to create Javadocs for ESAPI using Eclipse v3.4==&lt;br /&gt;
First off, notice a folder called &amp;quot;javadoc resources&amp;quot; in the root directory of your ESAPI project.  This folder contains images referenced from the Javadoc as well as overview-summary.html, which is the title page for the ESAPI Javadoc.  The instructions below make reference to these files.&lt;br /&gt;
[[category:FIXME|image links not working]]&lt;br /&gt;
===To Generate Javadocs===&lt;br /&gt;
# ''Be sure you are in the Java EE perspective.''  To change your perspective, click the ''Window'' button on the main toolbar.  Then click ''Open Perspective'' and choose ''Java EE''.  If Java EE is not in the list, select ''Other...'' and find ''Java EE''.  If Java EE is not in the list under Other, you may need to download Eclipse Ganymede (v3.4) for Java EE developers.  Javadoc creation functionality may be built into your version of Eclipse, but that has not been tested.&lt;br /&gt;
# Then, click the ''Project'' button on the main toolbar.  Select ''Generate Javadoc...''&lt;br /&gt;
# Find the Javadoc executable to use.  This is usually javadoc.exe within your java bin directory, as shown in figure 1.&lt;br /&gt;
# Select the ESAPI source, but not the test files within your ESAPI project, as shown in figure 1.&lt;br /&gt;
# You should create Javadoc for members with visibility: Package, as shown in figure 1.&lt;br /&gt;
# Select the Javadoc output directory.  This will likely be /doc under your ESAPI project folder.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 1:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc1.jpg&lt;br /&gt;
&lt;br /&gt;
# Designate a title for this Javadoc.  Generally, this should be &amp;quot;OWASP Enterprise Security API (ESAPI)&amp;quot;.&lt;br /&gt;
# Use Default: Under Basic Options, make sure all checkboxes are selected, as shown in Figure 2.&lt;br /&gt;
# Use Default: Make sure Javadocs for referenced archives are not generated, as shown in Figure 2.&lt;br /&gt;
# Use Default: No custom style sheet should be specified, as shown in Figure 2.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 2:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc2.jpg&lt;br /&gt;
&lt;br /&gt;
# ''The Overview page must be selected, as shown in Figure 3''.  ''It should point to overview-summary.html in the javadoc resources folder''.&lt;br /&gt;
# Use Default: The JRE source compatibility should be selected as 1.4, as shown in Figure 3.&lt;br /&gt;
# Click ''Finish''.&lt;br /&gt;
&lt;br /&gt;
Figure 3: &lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc3.jpg&lt;br /&gt;
&lt;br /&gt;
# If it isn't already there, copy the folder &amp;quot;doc-files&amp;quot; from &amp;quot;javadoc resources&amp;quot; to org/owasp/esapi within your new javadoc directory.&lt;br /&gt;
# To view these new javadocs, double click on: &amp;lt;yourdocsfolder&amp;gt;/index.html&lt;br /&gt;
&lt;br /&gt;
=== Submitting these new javadocs to SVN ===&lt;br /&gt;
# To submit these newly generated javadocs, simply use Team --&amp;gt; Commit in Eclipse. Note: Please check in updates into the existing /doc directory, rather than creating a new directory.&lt;br /&gt;
# If you receive version control errors during the submit, follow the following steps:&lt;br /&gt;
* Navigate to your ESAPI Project/doc/org/owasp/esapi/doc-files directory.&lt;br /&gt;
* Delete the folder called .svn from this folder and all subdirectories (wiki).&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to svn:ignore...&amp;quot;.&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder again and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to Version Control&amp;quot;.  You should receive a message saying that you previously asked to ignore this file.  Click yes.&lt;br /&gt;
&lt;br /&gt;
== Why do my newly generated Javadocs render as plain text in my browser? ==&lt;br /&gt;
Unfortunately, using this method of Javadoc generation does not set MIME types for the HTML files generated.  This means that to the browser, your HTML files are just text files, and will display as such.  Luckily Subclipse has a function to fix this.  We are going to tell Subclipse to automatically set the MIME type of HTML files to text/html and the MIME type of CSS files to text/css every time it commits a change.&lt;br /&gt;
&lt;br /&gt;
# The first thing you need to do is enable auto properties for your SVN client.  If you do not enable auto properties, you will have to manually set the properties (MIME type) of every HTML and CSS file.&lt;br /&gt;
* In Windows, open a terminal by typing &amp;quot;cmd&amp;quot; (with no quotes) into &amp;quot;Run&amp;quot; on the Start menu.  If you are using Vista, you can type &amp;quot;cmd&amp;quot; directly into the &amp;quot;Start Searching&amp;quot; bar.&lt;br /&gt;
* Type (again, and from now on, with no quotes) &amp;quot;cd %APPDATA%&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;cd Subversion&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;notepad config&amp;quot;. This will open the SVN configuration file in notepad.&lt;br /&gt;
* Find the line &amp;quot;enable-auto-props = yes&amp;quot; and remove the # from the front of it.  This enables auto properties.&lt;br /&gt;
# Then, tell Subversion which MIME types to set for which files:&lt;br /&gt;
* Towards the bottom of the file, find a section called ''[auto-props]''.  Add the following to this section:&lt;br /&gt;
     *.html = svn:mime-type=text/html&lt;br /&gt;
     *.css = svn:mime-type=text/css&lt;br /&gt;
# Save the file.&lt;br /&gt;
''Any further commits to the SVN should set the MIME type properly.''&lt;br /&gt;
&lt;br /&gt;
Your Javadoc should be ready to commit and view!&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=61410</id>
		<title>ESAPI Javadocs</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=61410"/>
				<updated>2009-05-22T17:11:13Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to create Javadocs for ESAPI using Eclipse v3.4==&lt;br /&gt;
First off, notice a folder called &amp;quot;javadoc resources&amp;quot; in the root directory of your ESAPI project.  This folder contains images referenced from the Javadoc as well as overview-summary.html, which is the title page for the ESAPI Javadoc.  The instructions below make reference to these files.&lt;br /&gt;
[[category:FIXME|image links not working]]&lt;br /&gt;
===To Generate Javadocs===&lt;br /&gt;
# ''Be sure you are in the Java EE perspective.''  To change your perspective, click the ''Window'' button on the main toolbar.  Then click ''Open Perspective'' and choose ''Java EE''.  If Java EE is not in the list, select ''Other...'' and find ''Java EE''.  If Java EE is not in the list under Other, you may need to download Eclipse Ganymede (v3.4) for Java EE developers.  Javadoc creation functionality may be built into your version of Eclipse, but that has not been tested.&lt;br /&gt;
# Then, click the ''Project'' button on the main toolbar.  Select ''Generate Javadoc...''&lt;br /&gt;
# Find the Javadoc executable to use.  This is usually javadoc.exe within your java bin directory, as shown in figure 1.&lt;br /&gt;
# Select the ESAPI source, but not the test files within your ESAPI project, as shown in figure 1.&lt;br /&gt;
# You should create Javadoc for members with visibility: Package, as shown in figure 1.&lt;br /&gt;
# Select the Javadoc output directory.  This will likely be /doc under your ESAPI project folder.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 1:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc1.jpg&lt;br /&gt;
&lt;br /&gt;
# Designate a title for this Javadoc.  Generally, this should be &amp;quot;OWASP Enterprise Security API (ESAPI)&amp;quot;.&lt;br /&gt;
# Use Default: Under Basic Options, make sure all checkboxes are selected, as shown in Figure 2.&lt;br /&gt;
# Use Default: Make sure Javadocs for referenced archives are not generated, as shown in Figure 2.&lt;br /&gt;
# Use Default: No custom style sheet should be specified, as shown in Figure 2.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 2:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc2.jpg&lt;br /&gt;
&lt;br /&gt;
# ''The Overview page must be selected, as shown in Figure 3''.  ''It should point to overview-summary.html in the javadoc resources folder''.&lt;br /&gt;
# Use Default: The JRE source compatibility should be selected as 1.4, as shown in Figure 3.&lt;br /&gt;
# Click ''Finish''.&lt;br /&gt;
&lt;br /&gt;
Figure 3: &lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc3.jpg&lt;br /&gt;
&lt;br /&gt;
# If it isn't already there, copy the folder &amp;quot;doc-files&amp;quot; from &amp;quot;javadoc resources&amp;quot; to org/owasp/esapi within your new javadoc directory.&lt;br /&gt;
# To view these new javadocs, double click on: &amp;lt;yourdocsfolder&amp;gt;/index.html&lt;br /&gt;
&lt;br /&gt;
=== Submitting these new javadocs to SVN ===&lt;br /&gt;
# To submit these newly generated javadocs, simply use Team --&amp;gt; Commit in Eclipse. Note: Please check in updates into the existing /doc directory, rather than creating a new directory.&lt;br /&gt;
# If you receive version control errors during the submit, follow the following steps:&lt;br /&gt;
* Navigate to your ESAPI Project/doc/org/owasp/esapi/doc-files directory.&lt;br /&gt;
* Delete the folder called .svn from this folder and all subdirectories (wiki).&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to svn:ignore...&amp;quot;.&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder again and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to Version Control&amp;quot;.  You should receive a message saying that you previously asked to ignore this file.  Click yes.&lt;br /&gt;
&lt;br /&gt;
== Why do my newly generated Javadocs render as plain text in my browser? ==&lt;br /&gt;
Unfortunately, using this method of Javadoc generation does not set MIME types for the HTML files generated.  This means that to the browser, your HTML files are just text files, and will display as such.  Luckily Subclipse has a function to fix this.  We are going to tell Subclipse to automatically set the MIME type of HTML files to text/html and the MIME type of CSS files to text/css every time it commits a change.&lt;br /&gt;
&lt;br /&gt;
# The first thing you need to do is enable auto properties for your SVN client.  If you do not enable auto properties, you will have to manually set the properties (MIME type) of every HTML and CSS file.&lt;br /&gt;
* In Windows, open a terminal by typing &amp;quot;cmd&amp;quot; (with no quotes) into &amp;quot;Run&amp;quot; on the Start menu.  If you are using Vista, you can type &amp;quot;cmd&amp;quot; directly into the &amp;quot;Start Searching&amp;quot; bar.&lt;br /&gt;
* Type (again, and from now on, with no quotes) &amp;quot;cd %APPDATA%&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;cd Subversion&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;notepad config&amp;quot;. This will open the SVN configuration file in notepad.&lt;br /&gt;
* Find the line &amp;quot;enable-auto-props = yes&amp;quot; and remove the # from the front of it.  This enables auto properties.&lt;br /&gt;
# Then, tell Subversion which MIME types to set for which files:&lt;br /&gt;
* Towards the bottom of the file, find a section called ''[auto-props]''.  Add the following to this section:&lt;br /&gt;
     *.html = svn:mime-type=text/html&lt;br /&gt;
     *.css = svn:mime-type=text/css&lt;br /&gt;
# Save the file.&lt;br /&gt;
''Any further commits to the SVN should set the MIME type properly.''&lt;br /&gt;
&lt;br /&gt;
Your Javadoc should be ready to commit and view!&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=61408</id>
		<title>ESAPI Javadocs</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=61408"/>
				<updated>2009-05-22T17:06:55Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to create Javadocs for ESAPI using Eclipse v3.4==&lt;br /&gt;
First off, notice a folder called &amp;quot;javadoc resources&amp;quot; in the root directory of your ESAPI project.  This folder contains images referenced from the Javadoc as well as overview-summary.html, which is the title page for the ESAPI Javadoc.  The instructions below make reference to these files.&lt;br /&gt;
[[category:FIXME|image links not working]]&lt;br /&gt;
===To Generate Javadocs===&lt;br /&gt;
# ''Be sure you are in the Java EE perspective.''  To change your perspective, click the ''Window'' button on the main toolbar.  Then click ''Open Perspective'' and choose ''Java EE''.  If Java EE is not in the list, select ''Other...'' and find ''Java EE''.  If Java EE is not in the list under Other, you may need to download Eclipse Ganymede (v3.4) for Java EE developers.  Javadoc creation functionality may be built into your version of Eclipse, but that has not been tested.&lt;br /&gt;
# Then, click the ''Project'' button on the main toolbar.  Select ''Generate Javadoc...''&lt;br /&gt;
# Find the Javadoc executable to use.  This is usually javadoc.exe within your java bin directory, as shown in figure 1.&lt;br /&gt;
# Select the ESAPI source, but not the test files within your ESAPI project, as shown in figure 1.&lt;br /&gt;
# You should create Javadoc for members with visibility: Package, as shown in figure 1.&lt;br /&gt;
# Select the Javadoc output directory.  This will likely be /doc under your ESAPI project folder.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 1:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc1.jpg&lt;br /&gt;
&lt;br /&gt;
# Designate a title for this Javadoc.  Generally, this should be &amp;quot;OWASP Enterprise Security API (ESAPI)&amp;quot;.&lt;br /&gt;
# Use Default: Under Basic Options, make sure all checkboxes are selected, as shown in Figure 2.&lt;br /&gt;
# Use Default: Make sure Javadocs for referenced archives are not generated, as shown in Figure 2.&lt;br /&gt;
# Use Default: No custom style sheet should be specified, as shown in Figure 2.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 2:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc2.jpg&lt;br /&gt;
&lt;br /&gt;
# ''The Overview page must be selected, as shown in Figure 3''.  ''It should point to overview-summary.html in the javadoc resources folder''.&lt;br /&gt;
# Use Default: The JRE source compatibility should be selected as 1.4, as shown in Figure 3.&lt;br /&gt;
# Click ''Finish''.&lt;br /&gt;
&lt;br /&gt;
Figure 3: &lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/Generate%20Javadoc3.jpg&lt;br /&gt;
&lt;br /&gt;
# If it isn't already there, copy the folder &amp;quot;doc-files&amp;quot; from &amp;quot;javadoc resources&amp;quot; to org/owasp/esapi within your new javadoc directory.&lt;br /&gt;
# To view these new javadocs, double click on: &amp;lt;yourdocsfolder&amp;gt;/index.html&lt;br /&gt;
&lt;br /&gt;
=== Submitting these new javadocs to SVN ===&lt;br /&gt;
# To submit these newly generated javadocs, simply use Team --&amp;gt; Commit in Eclipse. Note: Please check in updates into the existing /doc directory, rather than creating a new directory.&lt;br /&gt;
# If you receive version control errors during the submit, follow the following steps:&lt;br /&gt;
* Navigate to your ESAPI Project/doc/org/owasp/esapi/doc-files directory.&lt;br /&gt;
* Delete the folder called .svn from this folder and all subdirectories (wiki).&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to svn:ignore...&amp;quot;.&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder again and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to Version Control&amp;quot;.  You should receive a message saying that you previously asked to ignore this file.  Click yes.&lt;br /&gt;
&lt;br /&gt;
== Why do my newly generated Javadocs render as plain text in my browser? ==&lt;br /&gt;
Unfortunately, using this method of Javadoc generation does not set MIME types for the HTML files generated.  This means that to the browser, your HTML files are just text files, and will display as such.  Luckily Subclipse has a function to fix this.  We are going to tell Subclipse to automatically set the MIME type of HTML files to text/html and the MIME type of CSS files to text/css every time it commits a change.&lt;br /&gt;
&lt;br /&gt;
# The first thing you need to do is enable auto properties for your SVN client.  If you do not enable auto properties, you will have to manually set the properties (MIME type) of every HTML and CSS file.&lt;br /&gt;
* In Windows, open a terminal by typing &amp;quot;cmd&amp;quot; (with no quotes) into &amp;quot;Run&amp;quot; on the Start menu.  If you are using Vista, you can type &amp;quot;cmd&amp;quot; directly into the &amp;quot;Start Searching&amp;quot; bar.&lt;br /&gt;
* Type (again, and from now on, with no quotes) &amp;quot;cd %APPDATA%&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;cd Subversion&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;notepad config&amp;quot;. This will open the SVN configuration file in notepad.&lt;br /&gt;
* Find the line &amp;quot;enable-auto-props = yes&amp;quot; and remove the # from the front of it.  This enables auto properties.&lt;br /&gt;
# Then, tell Subversion which MIME types to set for which files:&lt;br /&gt;
* Towards the bottom of the file, find a section called ''[auto-props]''.  Add the following to this section:&lt;br /&gt;
     *.html = svn:mime-type=text/html&lt;br /&gt;
     *.css = svn:mime-type=text/css&lt;br /&gt;
# Save the file.&lt;br /&gt;
''Any further commits to the SVN should set the MIME type properly.''&lt;br /&gt;
&lt;br /&gt;
Your Javadoc should be ready to commit and view!&lt;br /&gt;
&lt;br /&gt;
[[Category: OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Troubleshoot_ESAPI&amp;diff=59127</id>
		<title>Troubleshoot ESAPI</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Troubleshoot_ESAPI&amp;diff=59127"/>
				<updated>2009-04-16T20:47:00Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===I am not receiving any compilation errors in Eclipse, but my web server can't find ESAPI===&lt;br /&gt;
* Be sure that ESAPI is being exported to your web server when the server starts. To do this:&lt;br /&gt;
# Right-click your project in the Navigator and choose &amp;quot;Properties&amp;quot;.&lt;br /&gt;
# Select &amp;quot;Java EE Module Dependencies&amp;quot; from the list on the left.&lt;br /&gt;
# If the ESAPI JAR is already listed, be sure it is checked off on the list.&lt;br /&gt;
# If the ESAPI JAR is not listed, add it with &amp;quot;Add JAR&amp;quot; or &amp;quot;Add External JAR&amp;quot;.&lt;br /&gt;
# Save and restart your web server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Troubleshoot_ESAPI&amp;diff=59126</id>
		<title>Troubleshoot ESAPI</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Troubleshoot_ESAPI&amp;diff=59126"/>
				<updated>2009-04-16T20:46:00Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: New page: ===I am not receiving any compilation errors in Eclipse, but my web server can't find ESAPI=== * Be sure that ESAPI is being exported to your web server when the server starts. To do this:...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===I am not receiving any compilation errors in Eclipse, but my web server can't find ESAPI===&lt;br /&gt;
* Be sure that ESAPI is being exported to your web server when the server starts. To do this:&lt;br /&gt;
# Right-click your project in the Navigator and choose &amp;quot;Properties&amp;quot;.&lt;br /&gt;
# Select &amp;quot;Java EE Module Dependencies&amp;quot; from the list on the left.&lt;br /&gt;
# If the ESAPI JAR is already listed, be sure it is checked off on the list.&lt;br /&gt;
# If the ESAPI JAR is not listed, add it with &amp;quot;Add JAR&amp;quot; or &amp;quot;Add External JAR&amp;quot;.&lt;br /&gt;
# Save and restart your web server.&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59123</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59123"/>
				<updated>2009-04-16T18:46:39Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Running Test Cases */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
** Simply unzip the contents wherever you like. This 'installs' Eclipse.&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Skip step 12 (do not open the SVN perspective)&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
** Only install the Maven Integration Components&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [[ESAPI-Building#Subversion_Setup|here]]&lt;br /&gt;
* Download the latest build of Maven from [http://maven.apache.org/download.html here] &lt;br /&gt;
* Download [http://owasp-esapi-java.googlecode.com/files/ESAPI_setup_resources.zip the ESAPI setup resources] and extract the files. Edit the included script file to match your directory structure.  Then run the script to add all ESAPI and Swingset dependencies to your Maven repository (enables building of ESAPI and Swingset). We recommend you run the script from the command line so that you can see the errors if any.  ''NOTE: the AntiSamy file mentioned in the batch file is also included in the archive''&lt;br /&gt;
** If you do not plan on building Swingset too, comment out any lines in the script that reference Swingset&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct (Use &amp;quot;&amp;quot; if there is a blank space in the path). Or, try removing all the REM lines from the script if it is also getting added to the path. &lt;br /&gt;
* Close Eclipse&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe and select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut and select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK (e.g., &amp;quot;C:\Program Files\Java\jdk1.6.0_13\bin&amp;quot;).  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
* Follow the instructions below for Importing the ESAPI Source.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===OR===&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 5.0+&lt;br /&gt;
&lt;br /&gt;
* Once Java 5.0+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* Right-click on your ESAPI project in the Navigator, mouse over ''Maven'' and click ''Enable Dependency Management''&lt;br /&gt;
** ''Note:'' If Maven is not an option when you right-click on the project, be sure the Maven plugin for eclipse is installed, as described above.&lt;br /&gt;
** ''Note:'' If ''Enable Dependency Management'' is not an option, dependency management is probably already enabled, So this step can be skipped.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [[ESAPI-Building#Eclipse_Setup |script listed above]] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.5''.  &lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests.&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field type &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59122</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59122"/>
				<updated>2009-04-16T18:45:58Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Building */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
** Simply unzip the contents wherever you like. This 'installs' Eclipse.&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Skip step 12 (do not open the SVN perspective)&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
** Only install the Maven Integration Components&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [[ESAPI-Building#Subversion_Setup|here]]&lt;br /&gt;
* Download the latest build of Maven from [http://maven.apache.org/download.html here] &lt;br /&gt;
* Download [http://owasp-esapi-java.googlecode.com/files/ESAPI_setup_resources.zip the ESAPI setup resources] and extract the files. Edit the included script file to match your directory structure.  Then run the script to add all ESAPI and Swingset dependencies to your Maven repository (enables building of ESAPI and Swingset). We recommend you run the script from the command line so that you can see the errors if any.  ''NOTE: the AntiSamy file mentioned in the batch file is also included in the archive''&lt;br /&gt;
** If you do not plan on building Swingset too, comment out any lines in the script that reference Swingset&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct (Use &amp;quot;&amp;quot; if there is a blank space in the path). Or, try removing all the REM lines from the script if it is also getting added to the path. &lt;br /&gt;
* Close Eclipse&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe and select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut and select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK (e.g., &amp;quot;C:\Program Files\Java\jdk1.6.0_13\bin&amp;quot;).  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
* Follow the instructions below for Importing the ESAPI Source.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===OR===&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 5.0+&lt;br /&gt;
&lt;br /&gt;
* Once Java 5.0+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* Right-click on your ESAPI project in the Navigator, mouse over ''Maven'' and click ''Enable Dependency Management''&lt;br /&gt;
** ''Note:'' If Maven is not an option when you right-click on the project, be sure the Maven plugin for eclipse is installed, as described above.&lt;br /&gt;
** ''Note:'' If ''Enable Dependency Management'' is not an option, dependency management is probably already enabled, So this step can be skipped.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [[ESAPI-Building#Eclipse_Setup |script listed above]] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.5''.  &lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests.&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field type &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass ''NOTE: NOT ALL TESTS CURRENTLY PASS''&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59121</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59121"/>
				<updated>2009-04-16T18:43:17Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Project Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
** Simply unzip the contents wherever you like. This 'installs' Eclipse.&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Skip step 12 (do not open the SVN perspective)&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
** Only install the Maven Integration Components&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [[ESAPI-Building#Subversion_Setup|here]]&lt;br /&gt;
* Download the latest build of Maven from [http://maven.apache.org/download.html here] &lt;br /&gt;
* Download [http://owasp-esapi-java.googlecode.com/files/ESAPI_setup_resources.zip the ESAPI setup resources] and extract the files. Edit the included script file to match your directory structure.  Then run the script to add all ESAPI and Swingset dependencies to your Maven repository (enables building of ESAPI and Swingset). We recommend you run the script from the command line so that you can see the errors if any.  ''NOTE: the AntiSamy file mentioned in the batch file is also included in the archive''&lt;br /&gt;
** If you do not plan on building Swingset too, comment out any lines in the script that reference Swingset&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct (Use &amp;quot;&amp;quot; if there is a blank space in the path). Or, try removing all the REM lines from the script if it is also getting added to the path. &lt;br /&gt;
* Close Eclipse&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe and select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut and select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK (e.g., &amp;quot;C:\Program Files\Java\jdk1.6.0_13\bin&amp;quot;).  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
* Follow the instructions below for Importing the ESAPI Source.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===OR===&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 5.0+&lt;br /&gt;
&lt;br /&gt;
* Once Java 5.0+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* Right-click on your ESAPI project in the Navigator, mouse over ''Maven'' and click ''Enable Dependency Management''&lt;br /&gt;
** ''Note:'' If Maven is not an option when you right-click on the project, be sure the Maven plugin for eclipse is installed, as described above.&lt;br /&gt;
** ''Note:'' If ''Enable Dependency Management'' is not an option, dependency management is probably already enabled, So this step can be skipped.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [[ESAPI-Building#Eclipse_Setup |script listed above]] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.5''.  &lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests (because tests failing cause the build to fail, and at the moment, some tests fail)&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field say &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass ''NOTE: NOT ALL TESTS CURRENTLY PASS''&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59120</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59120"/>
				<updated>2009-04-16T18:40:48Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Project Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
** Simply unzip the contents wherever you like. This 'installs' Eclipse.&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Skip step 12 (do not open the SVN perspective)&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
** Only install the Maven Integration Components&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [[ESAPI-Building#Subversion_Setup|here]]&lt;br /&gt;
* Download the latest build of Maven from [http://maven.apache.org/download.html here] &lt;br /&gt;
* Download [http://owasp-esapi-java.googlecode.com/files/ESAPI_setup_resources.zip the ESAPI setup resources] and extract the files. Edit the included script file to match your directory structure.  Then run the script to add all ESAPI and Swingset dependencies to your Maven repository (enables building of ESAPI and Swingset). We recommend you run the script from the command line so that you can see the errors if any.  ''NOTE: the AntiSamy file mentioned in the batch file is also included in the archive''&lt;br /&gt;
** If you do not plan on building Swingset too, comment out any lines in the script that reference Swingset&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct (Use &amp;quot;&amp;quot; if there is a blank space in the path). Or, try removing all the REM lines from the script if it is also getting added to the path. &lt;br /&gt;
* Close Eclipse&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe and select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut and select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK (e.g., &amp;quot;C:\Program Files\Java\jdk1.6.0_13\bin&amp;quot;).  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
* Follow the instructions below for Importing the ESAPI Source.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===OR===&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 5.0+&lt;br /&gt;
&lt;br /&gt;
* Once Java 5.0+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* Right-click on your ESAPI project in the Navigator, mouse over ''Maven'' and click ''Enable Dependency Management''&lt;br /&gt;
** ''Note:'' If Maven is not an option when you right-click on the project, be sure the Maven plugin for eclipse is installed, as described above.&lt;br /&gt;
** ''Note:'' If ''Enable Dependency Management'' is not an option, dependency management is probably already enabled, So this step can be skipped.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [[ESAPI-Building#Eclipse_Setup |script listed above]] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.  This is because ESAPI is backwards compatible with Java 1.4, but should not affect running the project on newer versions.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors still exist, Right-Click your ESAPI project root folder and select ''Maven'' -&amp;gt; ''Enable Dependency Management''.  If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests (because tests failing cause the build to fail, and at the moment, some tests fail)&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field say &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass ''NOTE: NOT ALL TESTS CURRENTLY PASS''&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59119</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59119"/>
				<updated>2009-04-16T18:36:30Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Project Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
** Simply unzip the contents wherever you like. This 'installs' Eclipse.&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Skip step 12 (do not open the SVN perspective)&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
** Only install the Maven Integration Components&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [[ESAPI-Building#Subversion_Setup|here]]&lt;br /&gt;
* Download the latest build of Maven from [http://maven.apache.org/download.html here] &lt;br /&gt;
* Download [http://owasp-esapi-java.googlecode.com/files/ESAPI_setup_resources.zip the ESAPI setup resources] and extract the files. Edit the included script file to match your directory structure.  Then run the script to add all ESAPI and Swingset dependencies to your Maven repository (enables building of ESAPI and Swingset). We recommend you run the script from the command line so that you can see the errors if any.  ''NOTE: the AntiSamy file mentioned in the batch file is also included in the archive''&lt;br /&gt;
** If you do not plan on building Swingset too, comment out any lines in the script that reference Swingset&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct (Use &amp;quot;&amp;quot; if there is a blank space in the path). Or, try removing all the REM lines from the script if it is also getting added to the path. &lt;br /&gt;
* Close Eclipse&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe and select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut and select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK (e.g., &amp;quot;C:\Program Files\Java\jdk1.6.0_13\bin&amp;quot;).  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
* Follow the instructions below for Importing the ESAPI Source.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===OR===&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 5.0+&lt;br /&gt;
&lt;br /&gt;
* Once Java 5.0+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [[ESAPI-Building#Eclipse_Setup |script listed above]] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.  This is because ESAPI is backwards compatible with Java 1.4, but should not affect running the project on newer versions.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors still exist, Right-Click your ESAPI project root folder and select ''Maven'' -&amp;gt; ''Enable Dependency Management''.  If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests (because tests failing cause the build to fail, and at the moment, some tests fail)&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field say &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass ''NOTE: NOT ALL TESTS CURRENTLY PASS''&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59118</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59118"/>
				<updated>2009-04-16T18:35:46Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Project Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
** Simply unzip the contents wherever you like. This 'installs' Eclipse.&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Skip step 12 (do not open the SVN perspective)&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
** Only install the Maven Integration Components&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [[ESAPI-Building#Subversion_Setup|here]]&lt;br /&gt;
* Download the latest build of Maven from [http://maven.apache.org/download.html here] &lt;br /&gt;
* Download [http://owasp-esapi-java.googlecode.com/files/ESAPI_setup_resources.zip the ESAPI setup resources] and extract the files. Edit the included script file to match your directory structure.  Then run the script to add all ESAPI and Swingset dependencies to your Maven repository (enables building of ESAPI and Swingset). We recommend you run the script from the command line so that you can see the errors if any.  ''NOTE: the AntiSamy file mentioned in the batch file is also included in the archive''&lt;br /&gt;
** If you do not plan on building Swingset too, comment out any lines in the script that reference Swingset&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct (Use &amp;quot;&amp;quot; if there is a blank space in the path). Or, try removing all the REM lines from the script if it is also getting added to the path. &lt;br /&gt;
* Close Eclipse&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe and select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut and select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK (e.g., &amp;quot;C:\Program Files\Java\jdk1.6.0_13\bin&amp;quot;).  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
* Follow the instructions below for Importing the ESAPI Source.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===OR===&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 5.0+&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4.2+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [[ESAPI-Building#Eclipse_Setup |script listed above]] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.  This is because ESAPI is backwards compatible with Java 1.4, but should not affect running the project on newer versions.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors still exist, Right-Click your ESAPI project root folder and select ''Maven'' -&amp;gt; ''Enable Dependency Management''.  If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests (because tests failing cause the build to fail, and at the moment, some tests fail)&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field say &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass ''NOTE: NOT ALL TESTS CURRENTLY PASS''&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59117</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59117"/>
				<updated>2009-04-16T18:32:36Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Eclipse Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
** Simply unzip the contents wherever you like. This 'installs' Eclipse.&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Skip step 12 (do not open the SVN perspective)&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
** Only install the Maven Integration Components&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [[ESAPI-Building#Subversion_Setup|here]]&lt;br /&gt;
* Download the latest build of Maven from [http://maven.apache.org/download.html here] &lt;br /&gt;
* Download [http://owasp-esapi-java.googlecode.com/files/ESAPI_setup_resources.zip the ESAPI setup resources] and extract the files. Edit the included script file to match your directory structure.  Then run the script to add all ESAPI and Swingset dependencies to your Maven repository (enables building of ESAPI and Swingset). We recommend you run the script from the command line so that you can see the errors if any.  ''NOTE: the AntiSamy file mentioned in the batch file is also included in the archive''&lt;br /&gt;
** If you do not plan on building Swingset too, comment out any lines in the script that reference Swingset&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct (Use &amp;quot;&amp;quot; if there is a blank space in the path). Or, try removing all the REM lines from the script if it is also getting added to the path. &lt;br /&gt;
* Close Eclipse&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe and select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut and select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK (e.g., &amp;quot;C:\Program Files\Java\jdk1.6.0_13\bin&amp;quot;).  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
* Follow the instructions below for Importing the ESAPI Source.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===OR===&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 1.4.2+.  &lt;br /&gt;
'''NOTE: ESAPI was recently updated to run on Java 5.0 and 6.'''&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4.2+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [[ESAPI-Building#Eclipse_Setup |script listed above]] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.  This is because ESAPI is backwards compatible with Java 1.4, but should not affect running the project on newer versions.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors still exist, Right-Click your ESAPI project root folder and select ''Maven'' -&amp;gt; ''Enable Dependency Management''.  If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests (because tests failing cause the build to fail, and at the moment, some tests fail)&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field say &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass ''NOTE: NOT ALL TESTS CURRENTLY PASS''&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59116</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59116"/>
				<updated>2009-04-16T18:32:17Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Eclipse Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
** Simply unzip the contents wherever you like. This 'installs' Eclipse.&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Skip step 12 (do not open the SVN perspective)&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
** Only install the Maven Integration Components&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [[ESAPI-Building#Subversion_Setup|here]]&lt;br /&gt;
* Download the latest build of Maven from [http://maven.apache.org/download.html here] &lt;br /&gt;
* Download [http://owasp-esapi-java.googlecode.com/files/ESAPI_setup_resources.zip the ESAPI setup resources] and extract the files. Edit the included script file to match your directory structure.  Then run the script to add all ESAPI and Swingset dependencies to your Maven repository (enables building of ESAPI and Swingset). We recommend you run the script from the command line so that you can see the errors if any.  ''NOTE: the AntiSamy file mentioned in the batch file is also included in the archive''&lt;br /&gt;
** If you do not plan on building Swingset too, comment out any lines in the script that reference Swingset&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct (Use &amp;quot;&amp;quot; if there is a blank space in the path). Or, try removing all the REM lines from the script if it is also getting added to the path. &lt;br /&gt;
* Close Eclipse&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe and select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut and select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK (e.g., &amp;quot;C:\Program Files\Java\jdk1.6.0_13\bin&amp;quot;).  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
* Follow the instructions&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===OR===&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 1.4.2+.  &lt;br /&gt;
'''NOTE: ESAPI was recently updated to run on Java 5.0 and 6.'''&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4.2+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [[ESAPI-Building#Eclipse_Setup |script listed above]] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.  This is because ESAPI is backwards compatible with Java 1.4, but should not affect running the project on newer versions.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors still exist, Right-Click your ESAPI project root folder and select ''Maven'' -&amp;gt; ''Enable Dependency Management''.  If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests (because tests failing cause the build to fail, and at the moment, some tests fail)&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field say &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass ''NOTE: NOT ALL TESTS CURRENTLY PASS''&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59115</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59115"/>
				<updated>2009-04-16T18:31:13Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Source Code From a .zip */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
** Simply unzip the contents wherever you like. This 'installs' Eclipse.&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Skip step 12 (do not open the SVN perspective)&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
** Only install the Maven Integration Components&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [[ESAPI-Building#Subversion_Setup|here]]&lt;br /&gt;
* Download the latest build of Maven from [http://maven.apache.org/download.html here] &lt;br /&gt;
* Download [http://owasp-esapi-java.googlecode.com/files/ESAPI_setup_resources.zip the ESAPI setup resources] and extract the files. Edit the included script file to match your directory structure.  Then run the script to add all ESAPI and Swingset dependencies to your Maven repository (enables building of ESAPI and Swingset). We recommend you run the script from the command line so that you can see the errors if any.  ''NOTE: the AntiSamy file mentioned in the batch file is also included in the archive''&lt;br /&gt;
** If you do not plan on building Swingset too, comment out any lines in the script that reference Swingset&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct (Use &amp;quot;&amp;quot; if there is a blank space in the path). Or, try removing all the REM lines from the script if it is also getting added to the path. &lt;br /&gt;
* Close Eclipse&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe and select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut and select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK (e.g., &amp;quot;C:\Program Files\Java\jdk1.6.0_13\bin&amp;quot;).  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===OR===&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 1.4.2+.  &lt;br /&gt;
'''NOTE: ESAPI was recently updated to run on Java 5.0 and 6.'''&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4.2+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [[ESAPI-Building#Eclipse_Setup |script listed above]] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.  This is because ESAPI is backwards compatible with Java 1.4, but should not affect running the project on newer versions.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors still exist, Right-Click your ESAPI project root folder and select ''Maven'' -&amp;gt; ''Enable Dependency Management''.  If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests (because tests failing cause the build to fail, and at the moment, some tests fail)&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field say &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass ''NOTE: NOT ALL TESTS CURRENTLY PASS''&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59114</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=59114"/>
				<updated>2009-04-16T18:30:22Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Eclipse Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
** Simply unzip the contents wherever you like. This 'installs' Eclipse.&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Skip step 12 (do not open the SVN perspective)&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
** Only install the Maven Integration Components&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [[ESAPI-Building#Subversion_Setup|here]]&lt;br /&gt;
* Download the latest build of Maven from [http://maven.apache.org/download.html here] &lt;br /&gt;
* Download [http://owasp-esapi-java.googlecode.com/files/ESAPI_setup_resources.zip the ESAPI setup resources] and extract the files. Edit the included script file to match your directory structure.  Then run the script to add all ESAPI and Swingset dependencies to your Maven repository (enables building of ESAPI and Swingset). We recommend you run the script from the command line so that you can see the errors if any.  ''NOTE: the AntiSamy file mentioned in the batch file is also included in the archive''&lt;br /&gt;
** If you do not plan on building Swingset too, comment out any lines in the script that reference Swingset&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct (Use &amp;quot;&amp;quot; if there is a blank space in the path). Or, try removing all the REM lines from the script if it is also getting added to the path. &lt;br /&gt;
* Close Eclipse&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe and select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut and select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK (e.g., &amp;quot;C:\Program Files\Java\jdk1.6.0_13\bin&amp;quot;).  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [[::Category:OWASP_Enterprise_Security_API#Download_Now|here]]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 1.4.2+.  &lt;br /&gt;
'''NOTE: ESAPI was recently updated to run on Java 5.0 and 6.'''&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4.2+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [[ESAPI-Building#Eclipse_Setup |script listed above]] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.  This is because ESAPI is backwards compatible with Java 1.4, but should not affect running the project on newer versions.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors still exist, Right-Click your ESAPI project root folder and select ''Maven'' -&amp;gt; ''Enable Dependency Management''.  If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests (because tests failing cause the build to fail, and at the moment, some tests fail)&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field say &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass ''NOTE: NOT ALL TESTS CURRENTLY PASS''&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=55001</id>
		<title>Category:OWASP Enterprise Security API</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=55001"/>
				<updated>2009-02-19T21:11:35Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Architecture */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:Project Information: OWASP Enterprise Security API Project}}&lt;br /&gt;
[[Category:OWASP Project]]&lt;br /&gt;
[[Category:OWASP Tool]]&lt;br /&gt;
[[Category:OWASP Download]]&lt;br /&gt;
[[Category:OWASP Release Quality Tool]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Why ESAPI?===&lt;br /&gt;
Unfortunately, the available platforms, frameworks, and toolkits (Java EE, Struts, Spring, etc...) simply do not provide enough protection. This leaves developers with responsibility for designing and building security mechanisms.  This reinventing the wheel for every application leads to wasted time and massive security holes.&lt;br /&gt;
&lt;br /&gt;
The cost savings through reduced development time, and the increased security due to using heavily analyzed and carefully designed security methods provide developers with a massive advantage over organizations that are trying to deal with security using existing ad hoc secure coding techniques. This API is designed to automatically take care of many aspects of application security, making these issues invisible to the developers.&lt;br /&gt;
&lt;br /&gt;
===Where did ESAPI come from?===&lt;br /&gt;
The OWASP ESAPI project is led by [[User:Jeff Williams|Jeff Williams]], who serves as the volunteer chair of OWASP and is the CEO of Aspect Security. Jeff is a software developer who has specialized in application security since 1995. The ESAPI is the result of over a decade of code review and penetration testing of critical enterprise applications.  If you'd like to volunteer to help on the project, you can contact him at jeff.williams@owasp.org.&lt;br /&gt;
&lt;br /&gt;
More information about the ESAPI can be found in the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation]&lt;br /&gt;
&lt;br /&gt;
==Architecture==&lt;br /&gt;
&lt;br /&gt;
The ESAPI architecture is very simple, just a collection of classes that encapsulate the key security operations most applications need.  ESAPI is designed to make it easy to retrofit security into existing applications, as well as providing a solid foundation for new development.  New development projects should consider integrating ESAPI into their framework to make even more of the security happen automatically. ESAPI comes with an ESAPI filter that minimizes the changes required to your base application.&lt;br /&gt;
&lt;br /&gt;
The ESAPI covers most of the key security challenges facing application developers. ESAPI provides the capability for developers to create applications that are protected against almost all of the risks described in the OWASP [[Top Ten]]. Compare this coverage with automated scanning and static analysis tools, and then consider how your time is best spent.&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk_doc/org/owasp/esapi/doc-files/OWASPTopTen.jpg&lt;br /&gt;
&lt;br /&gt;
There are two key parts to the ESAPI:&lt;br /&gt;
* A set of interfaces&lt;br /&gt;
* A reference implementation &lt;br /&gt;
&lt;br /&gt;
By using the ESAPI, applications across an organization will be easier to develop, more consistent, and easier to update in a single place. The use of the ESAPI will make it much easier for static analysis tools to verify an application, as the ESAPI calls can be built into the ruleset.&lt;br /&gt;
&lt;br /&gt;
==Download Now==&lt;br /&gt;
&lt;br /&gt;
This release is the first public release and will undoubtably undergo significant revision over the coming months. We are seeking organizations willing to pilot this ESAPI and work with us to make this library better.  Please contact jeff.williams@owasp.org for more information.  If you're interested in application security, please join the [http://lists.owasp.org/mailman/listinfo/owasp-esapi OWASP ESAPI mailing list] and help make ESAPI better!&lt;br /&gt;
&lt;br /&gt;
Versions (archived source files are also available on the SVN under tags)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table width=&amp;quot;100%&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th width=&amp;quot;50%&amp;quot;&amp;gt;JAR Files&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Source Files&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-full-java-1.4.jar ESAPI v1.4 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.4&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-basic-java-1.4.jar ESAPI v1.4 Basic JAR file]&lt;br /&gt;
: Java 1.4 compatible JAR for ESAPI v1.4 (does not contain many reference implementations)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.4.zip ESAPI v1.4 Source archive]&lt;br /&gt;
: Source files for ESAPI v1.4&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
* Information regarding the ESAPI SVN can be found at [http://code.google.com/p/owasp-esapi-java/ the ESAPI Google Code repository].&lt;br /&gt;
&lt;br /&gt;
* If you have any problems with the ESAPI, please report them to [http://code.google.com/p/owasp-esapi-java/issues/list the issues section].&lt;br /&gt;
&lt;br /&gt;
* The ESAPI [http://owasp-esapi-java.googlecode.com/svn/trunk_doc/index.html Javadocs] are located [http://owasp-esapi-java.googlecode.com/svn/trunk_doc/index.html here]. &lt;br /&gt;
&lt;br /&gt;
* For more information about the ESAPI, please view the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation].&lt;br /&gt;
&lt;br /&gt;
* If you are generating your own Javadocs for the ESAPI project, information regarding generation can be found [https://www.owasp.org/index.php/ESAPI_Javadocs here].&lt;br /&gt;
&lt;br /&gt;
==Changing/Building/Using the ESAPI==&lt;br /&gt;
If you would like to work with the ESAPI source code, or build the project, please [[ESAPI-Building | see here]].&lt;br /&gt;
&lt;br /&gt;
===Using the ESAPI===&lt;br /&gt;
If you want to see what the ESAPI is all about, and want to use the built-in implementations,&lt;br /&gt;
* Download the latest version of the ESAPI JAR from above.&lt;br /&gt;
* Add the ESAPI JAR to your project's build path.&lt;br /&gt;
* The current ESAPI JAR has been built for Java 1.6, however support for Java 1.4.2+ is available.  Please see [https://www.owasp.org/index.php/ESAPI-Building here] for information on building ESAPI for a different version of Java.  &lt;br /&gt;
* Use the [http://owasp-esapi-java.googlecode.com/svn/trunk_doc/index.html ESAPI's Javadocs ] to take advantage of all the built-in functions of the ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Running Demo App===&lt;br /&gt;
The ESAPI Demo application has been named [[ESAPI_Swingset|''The ESAPI Swingset'']].  More information about Swingset is available [[ESAPI_Swingset | here]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
&lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
==Licensing==&lt;br /&gt;
This project licensed under the [http://en.wikipedia.org/wiki/BSD_license BSD license], which is very permissive and about as close to public domain as is possible. You can use or modify ESAPI however you want, even include it in commercial products.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=49409</id>
		<title>Category:OWASP Enterprise Security API</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=49409"/>
				<updated>2008-12-16T17:42:52Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Using the ESAPI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=OWASP Enterprise Security API (ESAPI) Project=&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=QAPD1jPn04g Watch the Video]&lt;br /&gt;
&lt;br /&gt;
===What is ESAPI?===&lt;br /&gt;
The '''ESAPI''' is a free and open collection of all the security methods that a developer needs to build a secure web application. You can just use the interfaces and build your own implementation using your company's infrastructure. Or, you can use the reference implementation as a starting point. In concept, the API is language independent. However, the first deliverables from the project are a Java API and a Java reference implementation.  Efforts to build ESAPI in .NET and PHP are already underway.&lt;br /&gt;
&lt;br /&gt;
===Why ESAPI?===&lt;br /&gt;
Unfortunately, the available platforms, frameworks, and toolkits (Java EE, Struts, Spring, etc...) simply do not provide enough protection. This leaves developers with responsibility for designing and building security mechanisms.  This reinventing the wheel for every application leads to wasted time and massive security holes.&lt;br /&gt;
&lt;br /&gt;
The cost savings through reduced development time, and the increased security due to using heavily analyzed and carefully designed security methods provide developers with a massive advantage over organizations that are trying to deal with security using existing ad hoc secure coding techniques. This API is designed to automatically take care of many aspects of application security, making these issues invisible to the developers.&lt;br /&gt;
&lt;br /&gt;
===Where did ESAPI come from?===&lt;br /&gt;
The OWASP ESAPI project is led by [[User:Jeff Williams|Jeff Williams]], who serves as the volunteer chair of OWASP and is the CEO of Aspect Security. Jeff is a software developer who has specialized in application security since 1995. The ESAPI is the result of over a decade of code review and penetration testing of critical enterprise applications.  If you'd like to volunteer to help on the project, you can contact him at jeff.williams@owasp.org.&lt;br /&gt;
&lt;br /&gt;
More information about the ESAPI can be found in the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation]&lt;br /&gt;
&lt;br /&gt;
==Architecture==&lt;br /&gt;
&lt;br /&gt;
The ESAPI architecture is very simple, just a collection of classes that encapsulate the key security operations most applications need.  ESAPI is designed to make it easy to retrofit security into existing applications, as well as providing a solid foundation for new development.  New development projects should consider integrating ESAPI into their framework to make even more of the security happen automatically. ESAPI comes with an ESAPI filter that minimizes the changes required to your base application.&lt;br /&gt;
&lt;br /&gt;
The ESAPI covers most of the key security challenges facing application developers. ESAPI provides the capability for developers to create applications that are protected against almost all of the risks described in the OWASP [[Top Ten]]. Compare this coverage with automated scanning and static analysis tools, and then consider how your time is best spent.&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/doc/org/owasp/esapi/doc-files/OWASPTopTen.jpg&lt;br /&gt;
&lt;br /&gt;
There are two key parts to the ESAPI:&lt;br /&gt;
* A set of interfaces&lt;br /&gt;
* A reference implementation &lt;br /&gt;
&lt;br /&gt;
By using the ESAPI, applications across an organization will be easier to develop, more consistent, and easier to update in a single place. The use of the ESAPI will make it much easier for static analysis tools to verify an application, as the ESAPI calls can be built into the ruleset.&lt;br /&gt;
&lt;br /&gt;
==Download Now==&lt;br /&gt;
&lt;br /&gt;
This release is the first public release and will undoubtably undergo significant revision over the coming months. We are seeking organizations willing to pilot this ESAPI and work with us to make this library better.  Please contact jeff.williams@owasp.org for more information.  If you're interested in application security, please join the [http://lists.owasp.org/mailman/listinfo/owasp-esapi OWASP ESAPI mailing list] and help make ESAPI better!&lt;br /&gt;
&lt;br /&gt;
Versions (archived source files are also available on the SVN under tags)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table width=&amp;quot;100%&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th width=&amp;quot;50%&amp;quot;&amp;gt;JAR Files&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Source Files&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-full-java-1.4.jar ESAPI v1.4 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.4&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-basic-java-1.4.jar ESAPI v1.4 Basic JAR file]&lt;br /&gt;
: Java 1.4 compatible JAR for ESAPI v1.4 (does not contain many reference implementations)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.4.zip ESAPI v1.4 Source archive]&lt;br /&gt;
: Source files for ESAPI v1.4&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
* Information regarding the ESAPI SVN can be found at [http://code.google.com/p/owasp-esapi-java/ the ESAPI Google Code repository].&lt;br /&gt;
&lt;br /&gt;
* If you have any problems with the ESAPI, please report them to [http://code.google.com/p/owasp-esapi-java/issues/list the issues section].&lt;br /&gt;
&lt;br /&gt;
* The ESAPI [http://owasp-esapi-java.googlecode.com/svn/trunk_doc/index.html Javadocs] are located [http://owasp-esapi-java.googlecode.com/svn/trunk_doc/index.html here]. &lt;br /&gt;
&lt;br /&gt;
* For more information about the ESAPI, please view the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation].&lt;br /&gt;
&lt;br /&gt;
* If you are generating your own Javadocs for the ESAPI project, information regarding generation can be found [https://www.owasp.org/index.php/ESAPI_Javadocs here].&lt;br /&gt;
&lt;br /&gt;
==Changing/Building/Using the ESAPI==&lt;br /&gt;
If you would like to work with the ESAPI source code, or build the project, please [[ESAPI-Building | see here]].&lt;br /&gt;
&lt;br /&gt;
===Using the ESAPI===&lt;br /&gt;
If you want to see what the ESAPI is all about, and want to use the built-in implementations,&lt;br /&gt;
* Download the latest version of the ESAPI JAR from above.&lt;br /&gt;
* Add the ESAPI JAR to your project's build path.&lt;br /&gt;
* The current ESAPI JAR has been built for Java 1.6, however support for Java 1.4.2+ is available.  Please see [https://www.owasp.org/index.php/ESAPI-Building here] for information on building ESAPI for a different version of Java.  &lt;br /&gt;
* Use the [http://owasp-esapi-java.googlecode.com/svn/trunk_doc/index.html ESAPI's Javadocs ] to take advantage of all the built-in functions of the ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Running Demo App===&lt;br /&gt;
The ESAPI Demo application has been named [[ESAPI_Swingset|''The ESAPI Swingset'']].  More information about Swingset is available [[ESAPI_Swingset | here]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
&lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
==Licensing==&lt;br /&gt;
This project licensed under the [http://en.wikipedia.org/wiki/BSD_license BSD license], which is very permissive and about as close to public domain as is possible. You can use or modify ESAPI however you want, even include it in commercial products.&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Download]]&lt;br /&gt;
[[Category:OWASP Project]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49102</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49102"/>
				<updated>2008-12-15T21:06:12Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Eclipse Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index_jdk5.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Don't forget to do Step 12: to enable the Subversion perspective within Eclipse&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [https://www.owasp.org/index.php/ESAPI-Building#Subversion_Setup here]&lt;br /&gt;
* Download the latest build of Maven from [http://maven.apache.org/download.html here] -- only install the Maven Integration Components&lt;br /&gt;
* Download [http://owasp-esapi-java.googlecode.com/files/ESAPI_setup_resources.zip the ESAPI setup resources] and extract the files. Edit the included script file to match your directory structure.  Then run the script to add all ESAPI and Swingset dependencies to your Maven repository (enables building of ESAPI and Swingset)  ''NOTE: the AntiSamy file mentioned in the batch file is also included in the archive''&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe&lt;br /&gt;
# Select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut&lt;br /&gt;
* Select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK.  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 1.4.2+.  &lt;br /&gt;
'''NOTE: ESAPI was recently updated to run on Java 5.0 and 6.'''&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4.2+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [https://www.owasp.org/index.php/ESAPI-Building#Eclipse_Setup script listed above] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.  This is because ESAPI is backwards compatible with Java 1.4, but should not affect running the project on newer versions.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors still exist, Right-Click your ESAPI project root folder and select ''Maven'' -&amp;gt; ''Enable Dependency Management''.  If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests (because tests failing cause the build to fail, and at the moment, some tests fail)&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field say &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass ''NOTE: NOT ALL TESTS CURRENTLY PASS''&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49101</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49101"/>
				<updated>2008-12-15T20:34:22Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Eclipse Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index_jdk5.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Don't forget to do Step 12: to enable the Subversion perspective within Eclipse&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [https://www.owasp.org/index.php/ESAPI-Building#Subversion_Setup here]&lt;br /&gt;
* Download the latest build of Maven from [http://maven.apache.org/download.html here]&lt;br /&gt;
* Download [http://owasp-esapi-java.googlecode.com/files/ESAPI_setup_resources.zip the ESAPI setup resources] and extract the files. Edit the included script file to match your directory structure.  Then run the script to add all ESAPI and Swingset dependencies to your Maven repository (enables building of ESAPI and Swingset)  ''NOTE: the AntiSamy file mentioned in the batch file is also included in the archive''&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe&lt;br /&gt;
# Select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut&lt;br /&gt;
* Select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK.  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 1.4.2+.  &lt;br /&gt;
'''NOTE: ESAPI was recently updated to run on Java 5.0 and 6.'''&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4.2+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [https://www.owasp.org/index.php/ESAPI-Building#Eclipse_Setup script listed above] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.  This is because ESAPI is backwards compatible with Java 1.4, but should not affect running the project on newer versions.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors still exist, Right-Click your ESAPI project root folder and select ''Maven'' -&amp;gt; ''Enable Dependency Management''.  If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests (because tests failing cause the build to fail, and at the moment, some tests fail)&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field say &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass ''NOTE: NOT ALL TESTS CURRENTLY PASS''&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=49100</id>
		<title>ESAPI Javadocs</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=49100"/>
				<updated>2008-12-15T19:32:57Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Submitting these new javadocs to SVN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to create Javadocs for ESAPI using Eclipse v3.4==&lt;br /&gt;
First off, notice a folder called &amp;quot;javadoc resources&amp;quot; in the root directory of your ESAPI project.  This folder contains images referenced from the Javadoc as well as overview-summary.html, which is the title page for the ESAPI Javadoc.  The instructions below make reference to these files.&lt;br /&gt;
&lt;br /&gt;
===To Generate Javadocs===&lt;br /&gt;
# ''Be sure you are in the Java EE perspective.''  To change your perspective, click the ''Window'' button on the main toolbar.  Then click ''Open Perspective'' and choose ''Java EE''.  If Java EE is not in the list, select ''Other..'' and find ''Java EE''.  If Java EE is not in the list under Other, you may need to download Eclipse Ganymede (v3.4) for Java EE developers.  Javadoc creation functionality may be built into your version of Eclipse, but that has not been tested.&lt;br /&gt;
# Then, click the ''Project'' button on the main toolbar.  Select ''Generate Javadoc...''&lt;br /&gt;
# Find the Javadoc executable to use.  This is usually javadoc.exe within your java bin directory, as shown in figure 1.&lt;br /&gt;
# Select the ESAPI source, but not the test files within your ESAPI project, as shown in figure 1.&lt;br /&gt;
# You should create Javadoc for members with visibility: Package, as shown in figure 1.&lt;br /&gt;
# Select the Javadoc output directory.  This will likely be /doc under your ESAPI project folder.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 1:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/doc/org/owasp/esapi/doc-files/wiki/Generate%20Javadoc1.jpg&lt;br /&gt;
&lt;br /&gt;
# Designate a title for this Javadoc.  Generally, this should be &amp;quot;OWASP Enterprise Security API (ESAPI)&amp;quot;.&lt;br /&gt;
# Use Default: Under Basic Options, make sure all checkboxes are selected, as shown in Figure 2.&lt;br /&gt;
# Use Default: Make sure Javadocs for referenced archives are not generated, as shown in Figure 2.&lt;br /&gt;
# Use Default: No custom style sheet should be specified, as shown in Figure 2.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 2:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/doc/org/owasp/esapi/doc-files/wiki/Generate%20Javadoc2.jpg&lt;br /&gt;
&lt;br /&gt;
# ''The Overview page must be selected, as shown in Figure 3''.  ''It should point to overview-summary.html in the javadoc resources folder''.&lt;br /&gt;
# Use Default: The JRE source compatibility should be selected as 1.4, as shown in Figure 3.&lt;br /&gt;
# Click ''Finish''.&lt;br /&gt;
&lt;br /&gt;
Figure 3: &lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/doc/org/owasp/esapi/doc-files/wiki/Generate%20Javadoc3.jpg&lt;br /&gt;
&lt;br /&gt;
# If it isn't already there, copy the folder &amp;quot;doc-files&amp;quot; from &amp;quot;javadoc resources&amp;quot; to org/owasp/esapi within your new javadoc directory.&lt;br /&gt;
# To view these new javadocs, double click on: &amp;lt;yourdocsfolder&amp;gt;/index.html&lt;br /&gt;
&lt;br /&gt;
=== Submitting these new javadocs to SVN ===&lt;br /&gt;
# To submit these newly generated javadocs, simply use Team --&amp;gt; Commit in Eclipse. Note: Please check in updates into the existing /doc directory, rather than creating a new directory.&lt;br /&gt;
# If you receive version control errors during the submit, follow the following steps:&lt;br /&gt;
* Navigate to your ESAPI Project/doc/org/owasp/esapi/doc-files directory.&lt;br /&gt;
* Delete the folder called .svn from this folder and all subdirectories (wiki).&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to svn:ignore...&amp;quot;.&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder again and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to Version Control&amp;quot;.  You should receive a message saying that you previously asked to ignore this file.  Click yes.&lt;br /&gt;
&lt;br /&gt;
== Why do my newly generated Javadocs render as plain text in my browser? ==&lt;br /&gt;
Unfortunately, using this method of Javadoc generation does not set MIME types for the HTML files generated.  This means that to the browser, your HTML files are just text files, and will display as such.  Luckily Subclipse has a function to fix this.  We are going to tell Subclipse to automatically set the MIME type of HTML files to text/html and the MIME type of CSS files to text/css every time it commits a change.&lt;br /&gt;
&lt;br /&gt;
# The first thing you need to do is enable auto properties for your SVN client.  If you do not enable auto properties, you will have to manually set the properties (MIME type) of every HTML and CSS file.&lt;br /&gt;
* In Windows, open a terminal by typing &amp;quot;cmd&amp;quot; (with no quotes) into &amp;quot;Run&amp;quot; on the Start menu.  If you are using Vista, you can type &amp;quot;cmd&amp;quot; directly into the &amp;quot;Start Searching&amp;quot; bar.&lt;br /&gt;
* Type (again, and from now on, with no quotes) &amp;quot;cd %APPDATA%&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;cd Subversion&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;notepad config&amp;quot;. This will open the SVN configuration file in notepad.&lt;br /&gt;
* Find the line &amp;quot;enable-auto-props = yes&amp;quot; and remove the # from the front of it.  This enables auto properties.&lt;br /&gt;
# Then, tell Subversion which MIME types to set for which files:&lt;br /&gt;
* Towards the bottom of the file, find a section called ''[auto-props]''.  Add the following to this section:&lt;br /&gt;
     *.html = svn:mime-type=text/html&lt;br /&gt;
     *.css = svn:mime-type=text/css&lt;br /&gt;
# Save the file.&lt;br /&gt;
''Any further commits to the SVN should set the MIME type properly.''&lt;br /&gt;
&lt;br /&gt;
Your Javadoc should be ready to commit and view!&lt;br /&gt;
&lt;br /&gt;
[[Category: OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=49099</id>
		<title>Category:OWASP Enterprise Security API</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=49099"/>
				<updated>2008-12-15T19:30:36Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Using the ESAPI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=OWASP Enterprise Security API (ESAPI) Project=&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=QAPD1jPn04g Watch the Video]&lt;br /&gt;
&lt;br /&gt;
===What is ESAPI?===&lt;br /&gt;
The '''ESAPI''' is a free and open collection of all the security methods that a developer needs to build a secure web application. You can just use the interfaces and build your own implementation using your company's infrastructure. Or, you can use the reference implementation as a starting point. In concept, the API is language independent. However, the first deliverables from the project are a Java API and a Java reference implementation.  Efforts to build ESAPI in .NET and PHP are already underway.&lt;br /&gt;
&lt;br /&gt;
===Why ESAPI?===&lt;br /&gt;
Unfortunately, the available platforms, frameworks, and toolkits (Java EE, Struts, Spring, etc...) simply do not provide enough protection. This leaves developers with responsibility for designing and building security mechanisms.  This reinventing the wheel for every application leads to wasted time and massive security holes.&lt;br /&gt;
&lt;br /&gt;
The cost savings through reduced development time, and the increased security due to using heavily analyzed and carefully designed security methods provide developers with a massive advantage over organizations that are trying to deal with security using existing ad hoc secure coding techniques. This API is designed to automatically take care of many aspects of application security, making these issues invisible to the developers.&lt;br /&gt;
&lt;br /&gt;
===Where did ESAPI come from?===&lt;br /&gt;
The OWASP ESAPI project is led by [[User:Jeff Williams|Jeff Williams]], who serves as the volunteer chair of OWASP and is the CEO of Aspect Security. Jeff is a software developer who has specialized in application security since 1995. The ESAPI is the result of over a decade of code review and penetration testing of critical enterprise applications.  If you'd like to volunteer to help on the project, you can contact him at jeff.williams@owasp.org.&lt;br /&gt;
&lt;br /&gt;
More information about the ESAPI can be found in the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation]&lt;br /&gt;
&lt;br /&gt;
==Architecture==&lt;br /&gt;
&lt;br /&gt;
The ESAPI architecture is very simple, just a collection of classes that encapsulate the key security operations most applications need.  ESAPI is designed to make it easy to retrofit security into existing applications, as well as providing a solid foundation for new development.  New development projects should consider integrating ESAPI into their framework to make even more of the security happen automatically. ESAPI comes with an ESAPI filter that minimizes the changes required to your base application.&lt;br /&gt;
&lt;br /&gt;
The ESAPI covers most of the key security challenges facing application developers. ESAPI provides the capability for developers to create applications that are protected against almost all of the risks described in the OWASP [[Top Ten]]. Compare this coverage with automated scanning and static analysis tools, and then consider how your time is best spent.&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/doc/org/owasp/esapi/doc-files/OWASPTopTen.jpg&lt;br /&gt;
&lt;br /&gt;
There are two key parts to the ESAPI:&lt;br /&gt;
* A set of interfaces&lt;br /&gt;
* A reference implementation &lt;br /&gt;
&lt;br /&gt;
By using the ESAPI, applications across an organization will be easier to develop, more consistent, and easier to update in a single place. The use of the ESAPI will make it much easier for static analysis tools to verify an application, as the ESAPI calls can be built into the ruleset.&lt;br /&gt;
&lt;br /&gt;
==Download Now==&lt;br /&gt;
&lt;br /&gt;
This release is the first public release and will undoubtably undergo significant revision over the coming months. We are seeking organizations willing to pilot this ESAPI and work with us to make this library better.  Please contact jeff.williams@owasp.org for more information.  If you're interested in application security, please join the [http://lists.owasp.org/mailman/listinfo/owasp-esapi OWASP ESAPI mailing list] and help make ESAPI better!&lt;br /&gt;
&lt;br /&gt;
Versions (archived source files are also available on the SVN under tags)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table width=&amp;quot;100%&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th width=&amp;quot;50%&amp;quot;&amp;gt;JAR Files&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Source Files&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-full-java-1.4.jar ESAPI v1.4 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.4&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-basic-java-1.4.jar ESAPI v1.4 Basic JAR file]&lt;br /&gt;
: Java 1.4 compatible JAR for ESAPI v1.4 (does not contain many reference implementations)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.4.zip ESAPI v1.4 Source archive]&lt;br /&gt;
: Source files for ESAPI v1.4&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
* Information regarding the ESAPI SVN can be found at [http://code.google.com/p/owasp-esapi-java/ the ESAPI Google Code repository].&lt;br /&gt;
&lt;br /&gt;
* If you have any problems with the ESAPI, please report them to [http://code.google.com/p/owasp-esapi-java/issues/list the issues section].&lt;br /&gt;
&lt;br /&gt;
* The ESAPI [http://owasp-esapi-java.googlecode.com/svn/trunk_doc/index.html Javadocs] are located [http://owasp-esapi-java.googlecode.com/svn/trunk_doc/index.html here]. &lt;br /&gt;
&lt;br /&gt;
* For more information about the ESAPI, please view the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation].&lt;br /&gt;
&lt;br /&gt;
* If you are generating your own Javadocs for the ESAPI project, information regarding generation can be found [https://www.owasp.org/index.php/ESAPI_Javadocs here].&lt;br /&gt;
&lt;br /&gt;
==Changing/Building/Using the ESAPI==&lt;br /&gt;
If you would like to work with the ESAPI source code, or build the project, please [[ESAPI-Building | see here]].&lt;br /&gt;
&lt;br /&gt;
===Using the ESAPI===&lt;br /&gt;
If you want to see what the ESAPI is all about, and want to use the built-in implementations,&lt;br /&gt;
* Download the latest version of the ESAPI JAR from above.&lt;br /&gt;
* Add the ESAPI JAR to your project's build path.&lt;br /&gt;
* At the moment, ESAPI is set up for Java 1.4.2.  If you would like to use the ESAPI reference implementations with a Java 1.6 application, there are some lines of code that need to be uncommented.  Please see [https://www.owasp.org/index.php/ESAPI-Building here] for information on editing the ESAPI.  More information regarding this topic will be added to the Wiki soon.  For now, please contact [http://www.owasp.org/index.php/User:Jeff_Williams Jeff Williams] if you plan to use ESAPI with a Java 1.6 project.&lt;br /&gt;
* As stated above, ESAPI requires Java 1.4.2.  Be sure to set your workspace settings regarding this.&lt;br /&gt;
* Use the [http://owasp-esapi-java.googlecode.com/svn/trunk_doc/index.html ESAPI's Javadocs ] to take advantage of all the built-in functions of the ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Running Demo App===&lt;br /&gt;
The ESAPI Demo application has been named [[ESAPI_Swingset|''The ESAPI Swingset'']].  More information about Swingset is available [[ESAPI_Swingset | here]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
&lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
==Licensing==&lt;br /&gt;
This project licensed under the [http://en.wikipedia.org/wiki/BSD_license BSD license], which is very permissive and about as close to public domain as is possible. You can use or modify ESAPI however you want, even include it in commercial products.&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Download]]&lt;br /&gt;
[[Category:OWASP Project]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=49098</id>
		<title>Category:OWASP Enterprise Security API</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=49098"/>
				<updated>2008-12-15T19:30:15Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=OWASP Enterprise Security API (ESAPI) Project=&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=QAPD1jPn04g Watch the Video]&lt;br /&gt;
&lt;br /&gt;
===What is ESAPI?===&lt;br /&gt;
The '''ESAPI''' is a free and open collection of all the security methods that a developer needs to build a secure web application. You can just use the interfaces and build your own implementation using your company's infrastructure. Or, you can use the reference implementation as a starting point. In concept, the API is language independent. However, the first deliverables from the project are a Java API and a Java reference implementation.  Efforts to build ESAPI in .NET and PHP are already underway.&lt;br /&gt;
&lt;br /&gt;
===Why ESAPI?===&lt;br /&gt;
Unfortunately, the available platforms, frameworks, and toolkits (Java EE, Struts, Spring, etc...) simply do not provide enough protection. This leaves developers with responsibility for designing and building security mechanisms.  This reinventing the wheel for every application leads to wasted time and massive security holes.&lt;br /&gt;
&lt;br /&gt;
The cost savings through reduced development time, and the increased security due to using heavily analyzed and carefully designed security methods provide developers with a massive advantage over organizations that are trying to deal with security using existing ad hoc secure coding techniques. This API is designed to automatically take care of many aspects of application security, making these issues invisible to the developers.&lt;br /&gt;
&lt;br /&gt;
===Where did ESAPI come from?===&lt;br /&gt;
The OWASP ESAPI project is led by [[User:Jeff Williams|Jeff Williams]], who serves as the volunteer chair of OWASP and is the CEO of Aspect Security. Jeff is a software developer who has specialized in application security since 1995. The ESAPI is the result of over a decade of code review and penetration testing of critical enterprise applications.  If you'd like to volunteer to help on the project, you can contact him at jeff.williams@owasp.org.&lt;br /&gt;
&lt;br /&gt;
More information about the ESAPI can be found in the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation]&lt;br /&gt;
&lt;br /&gt;
==Architecture==&lt;br /&gt;
&lt;br /&gt;
The ESAPI architecture is very simple, just a collection of classes that encapsulate the key security operations most applications need.  ESAPI is designed to make it easy to retrofit security into existing applications, as well as providing a solid foundation for new development.  New development projects should consider integrating ESAPI into their framework to make even more of the security happen automatically. ESAPI comes with an ESAPI filter that minimizes the changes required to your base application.&lt;br /&gt;
&lt;br /&gt;
The ESAPI covers most of the key security challenges facing application developers. ESAPI provides the capability for developers to create applications that are protected against almost all of the risks described in the OWASP [[Top Ten]]. Compare this coverage with automated scanning and static analysis tools, and then consider how your time is best spent.&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/doc/org/owasp/esapi/doc-files/OWASPTopTen.jpg&lt;br /&gt;
&lt;br /&gt;
There are two key parts to the ESAPI:&lt;br /&gt;
* A set of interfaces&lt;br /&gt;
* A reference implementation &lt;br /&gt;
&lt;br /&gt;
By using the ESAPI, applications across an organization will be easier to develop, more consistent, and easier to update in a single place. The use of the ESAPI will make it much easier for static analysis tools to verify an application, as the ESAPI calls can be built into the ruleset.&lt;br /&gt;
&lt;br /&gt;
==Download Now==&lt;br /&gt;
&lt;br /&gt;
This release is the first public release and will undoubtably undergo significant revision over the coming months. We are seeking organizations willing to pilot this ESAPI and work with us to make this library better.  Please contact jeff.williams@owasp.org for more information.  If you're interested in application security, please join the [http://lists.owasp.org/mailman/listinfo/owasp-esapi OWASP ESAPI mailing list] and help make ESAPI better!&lt;br /&gt;
&lt;br /&gt;
Versions (archived source files are also available on the SVN under tags)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table width=&amp;quot;100%&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th width=&amp;quot;50%&amp;quot;&amp;gt;JAR Files&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Source Files&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-full-java-1.4.jar ESAPI v1.4 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.4&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-basic-java-1.4.jar ESAPI v1.4 Basic JAR file]&lt;br /&gt;
: Java 1.4 compatible JAR for ESAPI v1.4 (does not contain many reference implementations)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.4.zip ESAPI v1.4 Source archive]&lt;br /&gt;
: Source files for ESAPI v1.4&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
* Information regarding the ESAPI SVN can be found at [http://code.google.com/p/owasp-esapi-java/ the ESAPI Google Code repository].&lt;br /&gt;
&lt;br /&gt;
* If you have any problems with the ESAPI, please report them to [http://code.google.com/p/owasp-esapi-java/issues/list the issues section].&lt;br /&gt;
&lt;br /&gt;
* The ESAPI [http://owasp-esapi-java.googlecode.com/svn/trunk_doc/index.html Javadocs] are located [http://owasp-esapi-java.googlecode.com/svn/trunk_doc/index.html here]. &lt;br /&gt;
&lt;br /&gt;
* For more information about the ESAPI, please view the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation].&lt;br /&gt;
&lt;br /&gt;
* If you are generating your own Javadocs for the ESAPI project, information regarding generation can be found [https://www.owasp.org/index.php/ESAPI_Javadocs here].&lt;br /&gt;
&lt;br /&gt;
==Changing/Building/Using the ESAPI==&lt;br /&gt;
If you would like to work with the ESAPI source code, or build the project, please [[ESAPI-Building | see here]].&lt;br /&gt;
&lt;br /&gt;
===Using the ESAPI===&lt;br /&gt;
If you want to see what the ESAPI is all about, and want to use the built-in implementations,&lt;br /&gt;
* Download the latest version of the ESAPI JAR from above.&lt;br /&gt;
* Add the ESAPI JAR to your project's build path.&lt;br /&gt;
* At the moment, ESAPI is set up for Java 1.4.2.  If you would like to use the ESAPI reference implementations with a Java 1.6 application, there are some lines of code that need to be uncommented.  Please see [https://www.owasp.org/index.php/ESAPI-Building here] for information on editing the ESAPI.  More information regarding this topic will be added to the Wiki soon.  For now, please contact [http://www.owasp.org/index.php/User:Jeff_Williams Jeff Williams] if you plan to use ESAPI with a Java 1.6 project.&lt;br /&gt;
* As stated above, ESAPI requires Java 1.4.2.  Be sure to set your workspace settings regarding this.&lt;br /&gt;
* Use the [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html ESAPI's Javadocs ] to take advantage of all the built-in functions of the ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Running Demo App===&lt;br /&gt;
The ESAPI Demo application has been named [[ESAPI_Swingset|''The ESAPI Swingset'']].  More information about Swingset is available [[ESAPI_Swingset | here]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
&lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
==Licensing==&lt;br /&gt;
This project licensed under the [http://en.wikipedia.org/wiki/BSD_license BSD license], which is very permissive and about as close to public domain as is possible. You can use or modify ESAPI however you want, even include it in commercial products.&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Download]]&lt;br /&gt;
[[Category:OWASP Project]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49082</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49082"/>
				<updated>2008-12-15T17:04:53Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Eclipse Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index_jdk5.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Don't forget to do Step 12: to enable the Subversion perspective within Eclipse&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [https://www.owasp.org/index.php/ESAPI-Building#Subversion_Setup here]&lt;br /&gt;
* Download [http://owasp-esapi-java.googlecode.com/files/ESAPI_setup_resources.zip the ESAPI setup resources] and extract the files. Edit the included script file to match your directory structure.  Then run the script to add all ESAPI and Swingset dependencies to your Maven repository (enables building of ESAPI and Swingset)  ''NOTE: the AntiSamy file mentioned in the batch file is also included in the archive''&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe&lt;br /&gt;
# Select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut&lt;br /&gt;
* Select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK.  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 1.4.2+.  &lt;br /&gt;
'''NOTE: ESAPI was recently updated to run on Java 5.0 and 6.'''&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4.2+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [https://www.owasp.org/index.php/ESAPI-Building#Eclipse_Setup script listed above] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.  This is because ESAPI is backwards compatible with Java 1.4, but should not affect running the project on newer versions.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors still exist, Right-Click your ESAPI project root folder and select ''Maven'' -&amp;gt; ''Enable Dependency Management''.  If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests (because tests failing cause the build to fail, and at the moment, some tests fail)&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field say &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass ''NOTE: NOT ALL TESTS CURRENTLY PASS''&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49068</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49068"/>
				<updated>2008-12-15T16:53:09Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Running Test Cases */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index_jdk5.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Don't forget to do Step 12: to enable the Subversion perspective within Eclipse&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [https://www.owasp.org/index.php/ESAPI-Building#Subversion_Setup here]&lt;br /&gt;
* Download [http://addlink this script] and edit it to match your directory structure.  Then run the script to add all ESAPI and Swingset dependencies to your Maven repository (enables building of ESAPI and Swingset)&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe&lt;br /&gt;
# Select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut&lt;br /&gt;
* Select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK.  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 1.4.2+.  &lt;br /&gt;
'''NOTE: ESAPI was recently updated to run on Java 5.0 and 6.'''&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4.2+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [https://www.owasp.org/index.php/ESAPI-Building#Eclipse_Setup script listed above] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.  This is because ESAPI is backwards compatible with Java 1.4, but should not affect running the project on newer versions.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors still exist, Right-Click your ESAPI project root folder and select ''Maven'' -&amp;gt; ''Enable Dependency Management''.  If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests (because tests failing cause the build to fail, and at the moment, some tests fail)&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field say &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass ''NOTE: NOT ALL TESTS CURRENTLY PASS''&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49067</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49067"/>
				<updated>2008-12-15T16:52:12Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Eclipse Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index_jdk5.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Don't forget to do Step 12: to enable the Subversion perspective within Eclipse&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [https://www.owasp.org/index.php/ESAPI-Building#Subversion_Setup here]&lt;br /&gt;
* Download [http://addlink this script] and edit it to match your directory structure.  Then run the script to add all ESAPI and Swingset dependencies to your Maven repository (enables building of ESAPI and Swingset)&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe&lt;br /&gt;
# Select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut&lt;br /&gt;
* Select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK.  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 1.4.2+.  &lt;br /&gt;
'''NOTE: ESAPI was recently updated to run on Java 5.0 and 6.'''&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4.2+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [https://www.owasp.org/index.php/ESAPI-Building#Eclipse_Setup script listed above] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.  This is because ESAPI is backwards compatible with Java 1.4, but should not affect running the project on newer versions.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors still exist, Right-Click your ESAPI project root folder and select ''Maven'' -&amp;gt; ''Enable Dependency Management''.  If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests (because tests failing cause the build to fail, and at the moment, some tests fail)&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field say &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49064</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49064"/>
				<updated>2008-12-15T16:46:18Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Building */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index_jdk5.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Don't forget to do Step 12: to enable the Subversion perspective within Eclipse&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [https://www.owasp.org/index.php/ESAPI-Building#Subversion_Setup here]&lt;br /&gt;
* Download [http://addlink this script] and edit it to match your directory structure.  Then run the script to add ESAPI and Antisamy jar files to your Maven repository (enables building of ESAPI and Swingset)&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe&lt;br /&gt;
# Select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut&lt;br /&gt;
* Select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK.  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 1.4.2+.  &lt;br /&gt;
'''NOTE: ESAPI was recently updated to run on Java 5.0 and 6.'''&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4.2+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [https://www.owasp.org/index.php/ESAPI-Building#Eclipse_Setup script listed above] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.  This is because ESAPI is backwards compatible with Java 1.4, but should not affect running the project on newer versions.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors still exist, Right-Click your ESAPI project root folder and select ''Maven'' -&amp;gt; ''Enable Dependency Management''.  If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the new Maven integration.&lt;br /&gt;
&lt;br /&gt;
Once your environment is set up, as specified above:&lt;br /&gt;
# Right-Click your ESAPI project root folder&lt;br /&gt;
# Select ''Run As...''&lt;br /&gt;
# Select ''Run Configurations''&lt;br /&gt;
# Double Click &amp;quot;Maven Build&amp;quot; from the options on the left to create a new configuration.&lt;br /&gt;
# Name your configuration at the top.  This will be for building ESAPI without running JUnit tests (because tests failing cause the build to fail, and at the moment, some tests fail)&lt;br /&gt;
# The &amp;quot;Base directory&amp;quot; should point to the root of your project&lt;br /&gt;
# The &amp;quot;Goals&amp;quot; field say &amp;quot;package&amp;quot;&lt;br /&gt;
# From the checkboxes below, check &amp;quot;Skip Tests&amp;quot;&lt;br /&gt;
# Any options not mentioned should be left as their default&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your build configuration&lt;br /&gt;
# Click &amp;quot;Run&amp;quot; to run your configuration&lt;br /&gt;
''NOTE: Jars created through building are located in the directory called &amp;quot;target&amp;quot;. ''&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49060</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49060"/>
				<updated>2008-12-15T16:40:33Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Project Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index_jdk5.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Don't forget to do Step 12: to enable the Subversion perspective within Eclipse&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [https://www.owasp.org/index.php/ESAPI-Building#Subversion_Setup here]&lt;br /&gt;
* Download [http://addlink this script] and edit it to match your directory structure.  Then run the script to add ESAPI and Antisamy jar files to your Maven repository (enables building of ESAPI and Swingset)&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe&lt;br /&gt;
# Select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut&lt;br /&gt;
* Select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK.  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 1.4.2+.  &lt;br /&gt;
'''NOTE: ESAPI was recently updated to run on Java 5.0 and 6.'''&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4.2+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [https://www.owasp.org/index.php/ESAPI-Building#Eclipse_Setup script listed above] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.  This is because ESAPI is backwards compatible with Java 1.4, but should not affect running the project on newer versions.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors still exist, Right-Click your ESAPI project root folder and select ''Maven'' -&amp;gt; ''Enable Dependency Management''.  If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the included Ant build scripts.&lt;br /&gt;
&lt;br /&gt;
There are two build scripts included in the ESAPI trunk repository.&lt;br /&gt;
* Full build of ESAPI with all available reference implementations.&lt;br /&gt;
* Basic build of ESAPI without reference implementations.&lt;br /&gt;
&lt;br /&gt;
While the reference implementations are generally good for independent developers, most businesses will want to create their own security implementations based around the companies standard practices and infrastructure.  This is why the Basic version is provided.&lt;br /&gt;
&lt;br /&gt;
To build either version, simple ''right-click the build script'' for the desired build, select ''Run As'' -&amp;gt; ''Ant Build''.  The script should run, with output directed to the Console.  When complete, the dist directory should contain a new JAR, the build directory will contain all class files (even the reference implementation class files in the Basic build), and javadoc/api will contain the newly generated Javadocs.&lt;br /&gt;
&lt;br /&gt;
===Problems Building?===&lt;br /&gt;
If you have any problems while performing the steps above, be sure you have Apache Ant installed.&lt;br /&gt;
''For help setting up Eclipse or integrating Ant within Eclipse, please read [http://www.onjava.com/pub/a/onjava/excerpt/anttdg2_ch11/index.html?page=1 this article]''.&lt;br /&gt;
&lt;br /&gt;
Compile problems after the build are usually caused by dependency issues.  Please check your Java Build Path to be sure all the necessary files are included.&lt;br /&gt;
&lt;br /&gt;
As of ESAPI v1.3.0, the necessary Libraries are:&lt;br /&gt;
&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/antisamy-bin.1.2.jar antisamy-bin.1.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/batik-css.jar batik-css.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/batik-util.jar batik-util.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-codec-1.3.jar commons-codec-1.3.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-fileupload-1.2.jar commons-fileupload-1.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-fileupload-1.2-sources.jar commons-fileupload-1.2-sources.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-httpclient-3.1.jar commons-httpclient-3.1.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-io-1.3.2.jar commons-io-1.3.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-io-1.3.2-sources.jar commons-io-1.3.2-sources.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-logging-1.1.1.jar commons-logging-1.1.1.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/jsp-api.jar jsp-api.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/junit-4.4.jar junit-4.4.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/nekohtml.jar nekohtml.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/proguard.jar proguard.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/servlet-api.jar servlet-api.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xercesImpl.jar xercesImpl.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xml-apis.jar xml-apis.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xml-apis-ext.jar xml-apis-ext.jar]&lt;br /&gt;
* [http://java.sun.com/j2se/1.4.2/download.html JRE System Library (1.4.2)]&lt;br /&gt;
&lt;br /&gt;
''Note: not all of these libraries may be required if you do not plan on using the ESAPI reference implementations!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please remember, ESAPI requires J2SE 1.4.2.&lt;br /&gt;
&lt;br /&gt;
====If any of these files are missing====&lt;br /&gt;
To check if the above files are on your Java Build Path in Eclipse, Right-Click the ESAPI project folder and select properties, then select ''Java Build Path'' from the left column, and choose ''Libraries'' from the tabs on the right.&lt;br /&gt;
&lt;br /&gt;
All of the files listed above, aside from the JRE, should have been downloaded in the source zip file.  They should be located in /lib.&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49058</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49058"/>
				<updated>2008-12-15T16:40:04Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Project Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index_jdk5.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Don't forget to do Step 12: to enable the Subversion perspective within Eclipse&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [https://www.owasp.org/index.php/ESAPI-Building#Subversion_Setup here]&lt;br /&gt;
* Download [http://addlink this script] and edit it to match your directory structure.  Then run the script to add ESAPI and Antisamy jar files to your Maven repository (enables building of ESAPI and Swingset)&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe&lt;br /&gt;
# Select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut&lt;br /&gt;
* Select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK.  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java JRE 1.4.2+.  &lt;br /&gt;
'''NOTE: ESAPI was recently updated to run on Java 5.0 and 6.'''&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4.2+ is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure a JRE or JDK is listed next to ''JRE System Library''.  If there is a red X on next to the JRE, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* The Libraries tab should list ''JRE System Library'' and ''Maven Dependencies''.  If anything else is listed, it is not necessary and should be removed.  Maven now handles all dependencies.&lt;br /&gt;
* If a red X appears next to ''Maven Dependencies'', click the arrow on the left to expand the tree.  If AntiSamy has an error, be sure the [http://linkhere script listed above] ran without errors.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.  This is because ESAPI is backwards compatible with Java 1.4, but should not affect running the project on newer versions.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* If errors still exist, Right-Click your ESAPI project root folder and select ''Maven'' -&amp;gt; ''Enable Dependency Management''.  If errors remain, select ''Maven'' again, then ''Update Dependencies''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the included Ant build scripts.&lt;br /&gt;
&lt;br /&gt;
There are two build scripts included in the ESAPI trunk repository.&lt;br /&gt;
* Full build of ESAPI with all available reference implementations.&lt;br /&gt;
* Basic build of ESAPI without reference implementations.&lt;br /&gt;
&lt;br /&gt;
While the reference implementations are generally good for independent developers, most businesses will want to create their own security implementations based around the companies standard practices and infrastructure.  This is why the Basic version is provided.&lt;br /&gt;
&lt;br /&gt;
To build either version, simple ''right-click the build script'' for the desired build, select ''Run As'' -&amp;gt; ''Ant Build''.  The script should run, with output directed to the Console.  When complete, the dist directory should contain a new JAR, the build directory will contain all class files (even the reference implementation class files in the Basic build), and javadoc/api will contain the newly generated Javadocs.&lt;br /&gt;
&lt;br /&gt;
===Problems Building?===&lt;br /&gt;
If you have any problems while performing the steps above, be sure you have Apache Ant installed.&lt;br /&gt;
''For help setting up Eclipse or integrating Ant within Eclipse, please read [http://www.onjava.com/pub/a/onjava/excerpt/anttdg2_ch11/index.html?page=1 this article]''.&lt;br /&gt;
&lt;br /&gt;
Compile problems after the build are usually caused by dependency issues.  Please check your Java Build Path to be sure all the necessary files are included.&lt;br /&gt;
&lt;br /&gt;
As of ESAPI v1.3.0, the necessary Libraries are:&lt;br /&gt;
&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/antisamy-bin.1.2.jar antisamy-bin.1.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/batik-css.jar batik-css.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/batik-util.jar batik-util.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-codec-1.3.jar commons-codec-1.3.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-fileupload-1.2.jar commons-fileupload-1.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-fileupload-1.2-sources.jar commons-fileupload-1.2-sources.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-httpclient-3.1.jar commons-httpclient-3.1.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-io-1.3.2.jar commons-io-1.3.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-io-1.3.2-sources.jar commons-io-1.3.2-sources.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-logging-1.1.1.jar commons-logging-1.1.1.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/jsp-api.jar jsp-api.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/junit-4.4.jar junit-4.4.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/nekohtml.jar nekohtml.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/proguard.jar proguard.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/servlet-api.jar servlet-api.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xercesImpl.jar xercesImpl.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xml-apis.jar xml-apis.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xml-apis-ext.jar xml-apis-ext.jar]&lt;br /&gt;
* [http://java.sun.com/j2se/1.4.2/download.html JRE System Library (1.4.2)]&lt;br /&gt;
&lt;br /&gt;
''Note: not all of these libraries may be required if you do not plan on using the ESAPI reference implementations!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please remember, ESAPI requires J2SE 1.4.2.&lt;br /&gt;
&lt;br /&gt;
====If any of these files are missing====&lt;br /&gt;
To check if the above files are on your Java Build Path in Eclipse, Right-Click the ESAPI project folder and select properties, then select ''Java Build Path'' from the left column, and choose ''Libraries'' from the tabs on the right.&lt;br /&gt;
&lt;br /&gt;
All of the files listed above, aside from the JRE, should have been downloaded in the source zip file.  They should be located in /lib.&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49043</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49043"/>
				<updated>2008-12-15T16:27:01Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Eclipse Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index_jdk5.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Don't forget to do Step 12: to enable the Subversion perspective within Eclipse&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [https://www.owasp.org/index.php/ESAPI-Building#Subversion_Setup here]&lt;br /&gt;
* Download [http://addlink this script] and edit it to match your directory structure.  Then run the script to add ESAPI and Antisamy jar files to your Maven repository (enables building of ESAPI and Swingset)&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe&lt;br /&gt;
# Select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut&lt;br /&gt;
* Select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK.  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java SDK 1.4. Java 1.4.2 is used by ESAPI to keep it backward compatible with environments that are still using older versions of Java.  Please be sure this is [http://java.sun.com/j2se/1.4.2/download.html downloaded] and installed.&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4 is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure the ''JRE'' listed is version ''1.4''.  If it is not, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the included Ant build scripts.&lt;br /&gt;
&lt;br /&gt;
There are two build scripts included in the ESAPI trunk repository.&lt;br /&gt;
* Full build of ESAPI with all available reference implementations.&lt;br /&gt;
* Basic build of ESAPI without reference implementations.&lt;br /&gt;
&lt;br /&gt;
While the reference implementations are generally good for independent developers, most businesses will want to create their own security implementations based around the companies standard practices and infrastructure.  This is why the Basic version is provided.&lt;br /&gt;
&lt;br /&gt;
To build either version, simple ''right-click the build script'' for the desired build, select ''Run As'' -&amp;gt; ''Ant Build''.  The script should run, with output directed to the Console.  When complete, the dist directory should contain a new JAR, the build directory will contain all class files (even the reference implementation class files in the Basic build), and javadoc/api will contain the newly generated Javadocs.&lt;br /&gt;
&lt;br /&gt;
===Problems Building?===&lt;br /&gt;
If you have any problems while performing the steps above, be sure you have Apache Ant installed.&lt;br /&gt;
''For help setting up Eclipse or integrating Ant within Eclipse, please read [http://www.onjava.com/pub/a/onjava/excerpt/anttdg2_ch11/index.html?page=1 this article]''.&lt;br /&gt;
&lt;br /&gt;
Compile problems after the build are usually caused by dependency issues.  Please check your Java Build Path to be sure all the necessary files are included.&lt;br /&gt;
&lt;br /&gt;
As of ESAPI v1.3.0, the necessary Libraries are:&lt;br /&gt;
&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/antisamy-bin.1.2.jar antisamy-bin.1.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/batik-css.jar batik-css.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/batik-util.jar batik-util.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-codec-1.3.jar commons-codec-1.3.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-fileupload-1.2.jar commons-fileupload-1.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-fileupload-1.2-sources.jar commons-fileupload-1.2-sources.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-httpclient-3.1.jar commons-httpclient-3.1.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-io-1.3.2.jar commons-io-1.3.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-io-1.3.2-sources.jar commons-io-1.3.2-sources.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-logging-1.1.1.jar commons-logging-1.1.1.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/jsp-api.jar jsp-api.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/junit-4.4.jar junit-4.4.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/nekohtml.jar nekohtml.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/proguard.jar proguard.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/servlet-api.jar servlet-api.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xercesImpl.jar xercesImpl.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xml-apis.jar xml-apis.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xml-apis-ext.jar xml-apis-ext.jar]&lt;br /&gt;
* [http://java.sun.com/j2se/1.4.2/download.html JRE System Library (1.4.2)]&lt;br /&gt;
&lt;br /&gt;
''Note: not all of these libraries may be required if you do not plan on using the ESAPI reference implementations!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please remember, ESAPI requires J2SE 1.4.2.&lt;br /&gt;
&lt;br /&gt;
====If any of these files are missing====&lt;br /&gt;
To check if the above files are on your Java Build Path in Eclipse, Right-Click the ESAPI project folder and select properties, then select ''Java Build Path'' from the left column, and choose ''Libraries'' from the tabs on the right.&lt;br /&gt;
&lt;br /&gt;
All of the files listed above, aside from the JRE, should have been downloaded in the source zip file.  They should be located in /lib.&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49041</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49041"/>
				<updated>2008-12-15T16:25:21Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Eclipse Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index_jdk5.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Don't forget to do Step 12: to enable the Subversion perspective within Eclipse&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [https://www.owasp.org/index.php/ESAPI-Building#Importing_the_ESAPI_Source here]&lt;br /&gt;
* Download [http://addlink this script] and edit it to match your directory structure.  Then run the script to add ESAPI and Antisamy jar files to your Maven repository (enables building of ESAPI and Swingset)&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe&lt;br /&gt;
# Select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut&lt;br /&gt;
* Select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK.  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java SDK 1.4. Java 1.4.2 is used by ESAPI to keep it backward compatible with environments that are still using older versions of Java.  Please be sure this is [http://java.sun.com/j2se/1.4.2/download.html downloaded] and installed.&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4 is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure the ''JRE'' listed is version ''1.4''.  If it is not, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the included Ant build scripts.&lt;br /&gt;
&lt;br /&gt;
There are two build scripts included in the ESAPI trunk repository.&lt;br /&gt;
* Full build of ESAPI with all available reference implementations.&lt;br /&gt;
* Basic build of ESAPI without reference implementations.&lt;br /&gt;
&lt;br /&gt;
While the reference implementations are generally good for independent developers, most businesses will want to create their own security implementations based around the companies standard practices and infrastructure.  This is why the Basic version is provided.&lt;br /&gt;
&lt;br /&gt;
To build either version, simple ''right-click the build script'' for the desired build, select ''Run As'' -&amp;gt; ''Ant Build''.  The script should run, with output directed to the Console.  When complete, the dist directory should contain a new JAR, the build directory will contain all class files (even the reference implementation class files in the Basic build), and javadoc/api will contain the newly generated Javadocs.&lt;br /&gt;
&lt;br /&gt;
===Problems Building?===&lt;br /&gt;
If you have any problems while performing the steps above, be sure you have Apache Ant installed.&lt;br /&gt;
''For help setting up Eclipse or integrating Ant within Eclipse, please read [http://www.onjava.com/pub/a/onjava/excerpt/anttdg2_ch11/index.html?page=1 this article]''.&lt;br /&gt;
&lt;br /&gt;
Compile problems after the build are usually caused by dependency issues.  Please check your Java Build Path to be sure all the necessary files are included.&lt;br /&gt;
&lt;br /&gt;
As of ESAPI v1.3.0, the necessary Libraries are:&lt;br /&gt;
&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/antisamy-bin.1.2.jar antisamy-bin.1.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/batik-css.jar batik-css.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/batik-util.jar batik-util.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-codec-1.3.jar commons-codec-1.3.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-fileupload-1.2.jar commons-fileupload-1.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-fileupload-1.2-sources.jar commons-fileupload-1.2-sources.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-httpclient-3.1.jar commons-httpclient-3.1.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-io-1.3.2.jar commons-io-1.3.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-io-1.3.2-sources.jar commons-io-1.3.2-sources.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-logging-1.1.1.jar commons-logging-1.1.1.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/jsp-api.jar jsp-api.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/junit-4.4.jar junit-4.4.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/nekohtml.jar nekohtml.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/proguard.jar proguard.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/servlet-api.jar servlet-api.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xercesImpl.jar xercesImpl.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xml-apis.jar xml-apis.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xml-apis-ext.jar xml-apis-ext.jar]&lt;br /&gt;
* [http://java.sun.com/j2se/1.4.2/download.html JRE System Library (1.4.2)]&lt;br /&gt;
&lt;br /&gt;
''Note: not all of these libraries may be required if you do not plan on using the ESAPI reference implementations!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please remember, ESAPI requires J2SE 1.4.2.&lt;br /&gt;
&lt;br /&gt;
====If any of these files are missing====&lt;br /&gt;
To check if the above files are on your Java Build Path in Eclipse, Right-Click the ESAPI project folder and select properties, then select ''Java Build Path'' from the left column, and choose ''Libraries'' from the tabs on the right.&lt;br /&gt;
&lt;br /&gt;
All of the files listed above, aside from the JRE, should have been downloaded in the source zip file.  They should be located in /lib.&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49040</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49040"/>
				<updated>2008-12-15T16:24:47Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Eclipse Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index_jdk5.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Don't forget to do Step 12: to enable the Subversion perspective within Eclipse&lt;br /&gt;
* Within Eclipse, download and install the [http://m2eclipse.codehaus.org/ Eclipse Maven plugin].  At this time, we recommend using the latest stable development build (the second link on the page)&lt;br /&gt;
* Connect to the SVN and download the ESAPI source.  Directions can be found [http://addlink here]&lt;br /&gt;
* Download [http://addlink this script] and edit it to match your directory structure.  Then run the script to add ESAPI and Antisamy jar files to your Maven repository (enables building of ESAPI and Swingset)&lt;br /&gt;
** If the script loads and quickly closes or there are build errors, it is likely that at least one of the references to files/folders is not correct&lt;br /&gt;
* If you do not launch Eclipse from a shortcut, create a shortcut for Eclipse&lt;br /&gt;
# Navigate to the directory where you installed Eclipse&lt;br /&gt;
# Right-Click Eclipse.exe&lt;br /&gt;
# Select ''Create Shortcut''&lt;br /&gt;
* Right-Click your Eclipse shortcut&lt;br /&gt;
* Select ''Properties''&lt;br /&gt;
* At the end of the line that says ''Target'', add ''-vm &amp;quot;x&amp;quot;'' where ''x'' is the location of a JDK.  This step is necessary for the Maven plugin to work&lt;br /&gt;
* Restart Eclipse using the edited shortcut.&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java SDK 1.4. Java 1.4.2 is used by ESAPI to keep it backward compatible with environments that are still using older versions of Java.  Please be sure this is [http://java.sun.com/j2se/1.4.2/download.html downloaded] and installed.&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4 is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure the ''JRE'' listed is version ''1.4''.  If it is not, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the included Ant build scripts.&lt;br /&gt;
&lt;br /&gt;
There are two build scripts included in the ESAPI trunk repository.&lt;br /&gt;
* Full build of ESAPI with all available reference implementations.&lt;br /&gt;
* Basic build of ESAPI without reference implementations.&lt;br /&gt;
&lt;br /&gt;
While the reference implementations are generally good for independent developers, most businesses will want to create their own security implementations based around the companies standard practices and infrastructure.  This is why the Basic version is provided.&lt;br /&gt;
&lt;br /&gt;
To build either version, simple ''right-click the build script'' for the desired build, select ''Run As'' -&amp;gt; ''Ant Build''.  The script should run, with output directed to the Console.  When complete, the dist directory should contain a new JAR, the build directory will contain all class files (even the reference implementation class files in the Basic build), and javadoc/api will contain the newly generated Javadocs.&lt;br /&gt;
&lt;br /&gt;
===Problems Building?===&lt;br /&gt;
If you have any problems while performing the steps above, be sure you have Apache Ant installed.&lt;br /&gt;
''For help setting up Eclipse or integrating Ant within Eclipse, please read [http://www.onjava.com/pub/a/onjava/excerpt/anttdg2_ch11/index.html?page=1 this article]''.&lt;br /&gt;
&lt;br /&gt;
Compile problems after the build are usually caused by dependency issues.  Please check your Java Build Path to be sure all the necessary files are included.&lt;br /&gt;
&lt;br /&gt;
As of ESAPI v1.3.0, the necessary Libraries are:&lt;br /&gt;
&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/antisamy-bin.1.2.jar antisamy-bin.1.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/batik-css.jar batik-css.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/batik-util.jar batik-util.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-codec-1.3.jar commons-codec-1.3.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-fileupload-1.2.jar commons-fileupload-1.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-fileupload-1.2-sources.jar commons-fileupload-1.2-sources.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-httpclient-3.1.jar commons-httpclient-3.1.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-io-1.3.2.jar commons-io-1.3.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-io-1.3.2-sources.jar commons-io-1.3.2-sources.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-logging-1.1.1.jar commons-logging-1.1.1.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/jsp-api.jar jsp-api.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/junit-4.4.jar junit-4.4.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/nekohtml.jar nekohtml.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/proguard.jar proguard.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/servlet-api.jar servlet-api.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xercesImpl.jar xercesImpl.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xml-apis.jar xml-apis.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xml-apis-ext.jar xml-apis-ext.jar]&lt;br /&gt;
* [http://java.sun.com/j2se/1.4.2/download.html JRE System Library (1.4.2)]&lt;br /&gt;
&lt;br /&gt;
''Note: not all of these libraries may be required if you do not plan on using the ESAPI reference implementations!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please remember, ESAPI requires J2SE 1.4.2.&lt;br /&gt;
&lt;br /&gt;
====If any of these files are missing====&lt;br /&gt;
To check if the above files are on your Java Build Path in Eclipse, Right-Click the ESAPI project folder and select properties, then select ''Java Build Path'' from the left column, and choose ''Libraries'' from the tabs on the right.&lt;br /&gt;
&lt;br /&gt;
All of the files listed above, aside from the JRE, should have been downloaded in the source zip file.  They should be located in /lib.&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49036</id>
		<title>ESAPI-Building</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI-Building&amp;diff=49036"/>
				<updated>2008-12-15T16:08:38Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Eclipse Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Eclipse Setup==&lt;br /&gt;
&lt;br /&gt;
* Get the [http://www.eclipse.org/downloads/ Ganymede release of Eclipse] - We recommend the version for Java EE developers&lt;br /&gt;
* Install [http://java.sun.com/javase/downloads/index_jdk5.jsp Java JDK 5.0 or greater] if you don't have it yet.  Note: a ''JDK'' (not JRE) is required&lt;br /&gt;
* Within Eclipse, download and install the [http://subclipse.tigris.org/install.html Eclipse Subversion (SVN) plugin] called Subclipse.  &lt;br /&gt;
** Don't forget to do Step 12: to enable the Subversion perspective within Eclipse&lt;br /&gt;
&lt;br /&gt;
==Importing the ESAPI Source==&lt;br /&gt;
To import the ESAPI source code into your workspace, you can either download the source files in a zip file from [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here] or download the latest trunk from the ESAPI SVN.  &lt;br /&gt;
&lt;br /&gt;
'''The zip files containing the ESAPI source''' are official releases of the ESAPI.  They will be updated whenever major changes are made to the ESAPI, whether features are added/removed, or if ESAPI undergoes a major organizational change.  If you are planning on using the ESAPI's reference implementations and want to see ESAPI's source, but do not want to build your own JAR, you might download the ESAPI source zip file (available [https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API#Download_Now here]).&lt;br /&gt;
&lt;br /&gt;
'''The ESAPI trunk SVN''' contains the most up-to-date development version of ESAPI.  The trunk may contain different code from the pre-zipped source.  It may contain new features or be organized differently.  The trunk is a development version of the ESAPI, meaning that contributors to the ESAPI project are actively editing this code, so while all contributors are encouraged to run all test cases on the code before committing it, developers using this code should run their own tests to be sure the code is fully functional.  In addition, because the trunk code is in development, documentation regarding the ESAPI, especially Javadocs, may not be entirely accurate.&lt;br /&gt;
&lt;br /&gt;
===Source Code From a .zip===&lt;br /&gt;
&lt;br /&gt;
While there are a few ways to import the ESAPI project using a zip file of its source code, I recommend following these instructions.  For the moment, I'll assume you are using Eclipse as your IDE.  More tutorials may come in the future for other IDEs.&lt;br /&gt;
&lt;br /&gt;
* Unzip file ESAPI source files to a directory of your choice.&lt;br /&gt;
* From the Eclipse toolbar, select ''File'' -&amp;gt; ''New'' -&amp;gt; ''Project'' -&amp;gt; ''Other''.&lt;br /&gt;
* In the ''Java'' folder, select ''Java Project from Existing Ant Buildfile'' and click Next.&lt;br /&gt;
* Name your project.&lt;br /&gt;
* Click ''Browse'' and navigate to the unzipped ESAPI source files.&lt;br /&gt;
* From the root directory (probably ESAPI_version) select ''build.xml''.&lt;br /&gt;
* Click ''Finish'' and you should be ready to edit ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Subversion Setup===&lt;br /&gt;
&lt;br /&gt;
If you choose to use the ESAPI SVN code, follow the instructions [http://code.google.com/p/owasp-esapi-java/source/checkout here].  Unless you have been added to the ESAPI project as a contributor, please use the bottom SVN checkout link on the Google Code page (non-SSL).&lt;br /&gt;
&lt;br /&gt;
If you are using subclipse, as recommended, open Eclipse and:&lt;br /&gt;
* Click ''File'' -&amp;gt; ''New'' -&amp;gt; ''Other....''.&lt;br /&gt;
* From the ''SVN Folder'' select '&amp;quot;Checkout Projects from SVN'' (this option will only be available if you have a SVN plugin installed) and hit ''Next &amp;gt;''.&lt;br /&gt;
* Click the ''Create a new repository location'' radio button.&lt;br /&gt;
* If you are not listed as a project contributor, insert ''http://owasp-esapi-java.googlecode.com/svn/trunk/'' as the URL.  If you are listed as a project contributor, check the Google Code page for the URL to use. (Note: if you are a contributor, when prompted for your SVN password, use your Google generated password, available from the Google Code Source page.) &lt;br /&gt;
* Once the directory structure appears in the window, click the URL at the top to download everything.  Then hit ''Next &amp;gt;''&lt;br /&gt;
* Select your desired project options.  For most people, the default options should be fine. When finished, click ''Next &amp;gt;''.&lt;br /&gt;
* Select your desired workspace options, then click ''Finish''.  The latest ESAPI source files will then be downloaded to your workspace.  This may take a few minutes.&lt;br /&gt;
&lt;br /&gt;
==Project Setup==&lt;br /&gt;
&lt;br /&gt;
Some configuration may be necessary for ESAPI to compile and build on your system.&lt;br /&gt;
&lt;br /&gt;
ESAPI requires the Java SDK 1.4. Java 1.4.2 is used by ESAPI to keep it backward compatible with environments that are still using older versions of Java.  Please be sure this is [http://java.sun.com/j2se/1.4.2/download.html downloaded] and installed.&lt;br /&gt;
&lt;br /&gt;
* Once Java 1.4 is installed, open the ''Navigator view'' in Eclipse.  If this is currently hidden, from the toolbar click ''Window'' -&amp;gt; ''Show View'' -&amp;gt; ''Navigator''.&lt;br /&gt;
* ''Right-click on the ESAPI project root folder'' in the Navigator view and select ''Properties''.&lt;br /&gt;
* From the left column, select ''Java Build Path''.  Under the ''Libraries'' tab, be sure the ''JRE'' listed is version ''1.4''.  If it is not, remove the current JRE and click ''Add Library'' and select an alternate JRE.  If you are having trouble figuring out what version the current JRE is, select ''Installed JREs'' and look at the location to which each version is mapped.&lt;br /&gt;
* From the left column, select ''Java Compiler''.  Be sure ''Compiler compliance level'', ''Generated .class files compatibility'', and ''Source compatibility'' are all set to ''1.4''.&lt;br /&gt;
* Close the properties window.&lt;br /&gt;
* ''Right-click the ESAPI project root folder'' and select ''Refresh''.&lt;br /&gt;
* From the toolbar, select ''Project'' -&amp;gt; ''Clean..'' and select the ESAPI project.  Click ''OK''.&lt;br /&gt;
* ESAPI should now be compiled.&lt;br /&gt;
&lt;br /&gt;
==Building==&lt;br /&gt;
&lt;br /&gt;
Building ESAPI should be easy with the included Ant build scripts.&lt;br /&gt;
&lt;br /&gt;
There are two build scripts included in the ESAPI trunk repository.&lt;br /&gt;
* Full build of ESAPI with all available reference implementations.&lt;br /&gt;
* Basic build of ESAPI without reference implementations.&lt;br /&gt;
&lt;br /&gt;
While the reference implementations are generally good for independent developers, most businesses will want to create their own security implementations based around the companies standard practices and infrastructure.  This is why the Basic version is provided.&lt;br /&gt;
&lt;br /&gt;
To build either version, simple ''right-click the build script'' for the desired build, select ''Run As'' -&amp;gt; ''Ant Build''.  The script should run, with output directed to the Console.  When complete, the dist directory should contain a new JAR, the build directory will contain all class files (even the reference implementation class files in the Basic build), and javadoc/api will contain the newly generated Javadocs.&lt;br /&gt;
&lt;br /&gt;
===Problems Building?===&lt;br /&gt;
If you have any problems while performing the steps above, be sure you have Apache Ant installed.&lt;br /&gt;
''For help setting up Eclipse or integrating Ant within Eclipse, please read [http://www.onjava.com/pub/a/onjava/excerpt/anttdg2_ch11/index.html?page=1 this article]''.&lt;br /&gt;
&lt;br /&gt;
Compile problems after the build are usually caused by dependency issues.  Please check your Java Build Path to be sure all the necessary files are included.&lt;br /&gt;
&lt;br /&gt;
As of ESAPI v1.3.0, the necessary Libraries are:&lt;br /&gt;
&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/antisamy-bin.1.2.jar antisamy-bin.1.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/batik-css.jar batik-css.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/batik-util.jar batik-util.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-codec-1.3.jar commons-codec-1.3.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-fileupload-1.2.jar commons-fileupload-1.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-fileupload-1.2-sources.jar commons-fileupload-1.2-sources.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-httpclient-3.1.jar commons-httpclient-3.1.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-io-1.3.2.jar commons-io-1.3.2.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-io-1.3.2-sources.jar commons-io-1.3.2-sources.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/commons-logging-1.1.1.jar commons-logging-1.1.1.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/jsp-api.jar jsp-api.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/junit-4.4.jar junit-4.4.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/nekohtml.jar nekohtml.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/proguard.jar proguard.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/servlet-api.jar servlet-api.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xercesImpl.jar xercesImpl.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xml-apis.jar xml-apis.jar]&lt;br /&gt;
* [http://owasp-esapi-java.googlecode.com/svn/trunk/lib/xml-apis-ext.jar xml-apis-ext.jar]&lt;br /&gt;
* [http://java.sun.com/j2se/1.4.2/download.html JRE System Library (1.4.2)]&lt;br /&gt;
&lt;br /&gt;
''Note: not all of these libraries may be required if you do not plan on using the ESAPI reference implementations!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please remember, ESAPI requires J2SE 1.4.2.&lt;br /&gt;
&lt;br /&gt;
====If any of these files are missing====&lt;br /&gt;
To check if the above files are on your Java Build Path in Eclipse, Right-Click the ESAPI project folder and select properties, then select ''Java Build Path'' from the left column, and choose ''Libraries'' from the tabs on the right.&lt;br /&gt;
&lt;br /&gt;
All of the files listed above, aside from the JRE, should have been downloaded in the source zip file.  They should be located in /lib.&lt;br /&gt;
&lt;br /&gt;
==Running Test Cases==&lt;br /&gt;
&lt;br /&gt;
* From the ''Navigator'' view, select test/org/owasp/esapi/AllTests.java&lt;br /&gt;
* ''Right-click'' -&amp;gt; ''Run As'' -&amp;gt; ''Run Configurations...''&lt;br /&gt;
* Choose the JUnit configuration&lt;br /&gt;
* Select the ''Arguments'' tab and enter a VM argument&lt;br /&gt;
** -Dorg.owasp.esapi.resources=&amp;quot;&amp;lt;path to your esapi project&amp;gt;/test/testresources&amp;quot;&lt;br /&gt;
* run tests and verify that they all pass&lt;br /&gt;
&lt;br /&gt;
==Running Demo App==&lt;br /&gt;
&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is available [http://www.owasp.org/index.php/ESAPI_Swingset here].&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=45675</id>
		<title>Category:OWASP Enterprise Security API</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=45675"/>
				<updated>2008-11-03T22:01:20Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Download Now */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=OWASP Enterprise Security API (ESAPI) Project=&lt;br /&gt;
&lt;br /&gt;
===What is ESAPI?===&lt;br /&gt;
The '''ESAPI''' is a free and open collection of all the security methods that a developer needs to build a secure web application. You can just use the interfaces and build your own implementation using your company's infrastructure. Or, you can use the reference implementation as a starting point. In concept, the API is language independent. However, the first deliverables from the project are a Java API and a Java reference implementation.  Efforts to build ESAPI in .NET and PHP are already underway.&lt;br /&gt;
&lt;br /&gt;
===Why ESAPI?===&lt;br /&gt;
Unfortunately, the available platforms, frameworks, and toolkits (Java EE, Struts, Spring, etc...) simply do not provide enough protection. This leaves developers with responsibility for designing and building security mechanisms.  This reinventing the wheel for every application leads to wasted time and massive security holes.&lt;br /&gt;
&lt;br /&gt;
The cost savings through reduced development time, and the increased security due to using heavily analyzed and carefully designed security methods provide developers with a massive advantage over organizations that are trying to deal with security using existing ad hoc secure coding techniques. This API is designed to automatically take care of many aspects of application security, making these issues invisible to the developers.&lt;br /&gt;
&lt;br /&gt;
===Where did ESAPI come from?===&lt;br /&gt;
The OWASP ESAPI project is led by [[User:Jeff Williams|Jeff Williams]], who serves as the volunteer chair of OWASP and is the CEO of Aspect Security. Jeff is a software developer who has specialized in application security since 1995. The ESAPI is the result of over a decade of code review and penetration testing of critical enterprise applications.  If you'd like to volunteer to help on the project, you can contact him at jeff.williams@owasp.org.&lt;br /&gt;
&lt;br /&gt;
More information about the ESAPI can be found in the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation]&lt;br /&gt;
&lt;br /&gt;
==Architecture==&lt;br /&gt;
&lt;br /&gt;
The ESAPI architecture is very simple, just a collection of classes that encapsulate the key security operations most applications need.  ESAPI is designed to make it easy to retrofit security into existing applications, as well as providing a solid foundation for new development.  New development projects should consider integrating ESAPI into their framework to make even more of the security happen automatically. ESAPI comes with an ESAPI filter that minimizes the changes required to your base application.&lt;br /&gt;
&lt;br /&gt;
The ESAPI covers most of the key security challenges facing application developers. ESAPI provides the capability for developers to create applications that are protected against almost all of the risks described in the OWASP [[Top Ten]]. Compare this coverage with automated scanning and static analysis tools, and then consider how your time is best spent.&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/doc/org/owasp/esapi/doc-files/OWASPTopTen.jpg&lt;br /&gt;
&lt;br /&gt;
There are two key parts to the ESAPI:&lt;br /&gt;
* A set of interfaces&lt;br /&gt;
* A reference implementation &lt;br /&gt;
&lt;br /&gt;
By using the ESAPI, applications across an organization will be easier to develop, more consistent, and easier to update in a single place. The use of the ESAPI will make it much easier for static analysis tools to verify an application, as the ESAPI calls can be built into the ruleset.&lt;br /&gt;
&lt;br /&gt;
==Download Now==&lt;br /&gt;
&lt;br /&gt;
This release is the first public release and will undoubtably undergo significant revision over the coming months. We are seeking organizations willing to pilot this ESAPI and work with us to make this library better.  Please contact jeff.williams@owasp.org for more information.  If you're interested in application security, please join the [http://lists.owasp.org/mailman/listinfo/owasp-esapi OWASP ESAPI mailing list] and help make ESAPI better!&lt;br /&gt;
&lt;br /&gt;
Versions (archived source files are also available on the SVN under tags)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table width=&amp;quot;100%&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th width=&amp;quot;50%&amp;quot;&amp;gt;JAR Files&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Source Files&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-full-java-1.4.jar ESAPI v1.4 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.4&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-basic-java-1.4.jar ESAPI v1.4 Basic JAR file]&lt;br /&gt;
: Java 1.4 compatible JAR for ESAPI v1.4 (does not contain many reference implementations)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.4.zip ESAPI v1.4 Source archive]&lt;br /&gt;
: Source files for ESAPI v1.4&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
* Information regarding the ESAPI SVN can be found at [http://code.google.com/p/owasp-esapi-java/ the ESAPI Google Code repository].&lt;br /&gt;
&lt;br /&gt;
* If you have any problems with the ESAPI, please report them to [http://code.google.com/p/owasp-esapi-java/issues/list the issues section].&lt;br /&gt;
&lt;br /&gt;
* The ESAPI [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html Javadocs] are located [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html here]. &lt;br /&gt;
&lt;br /&gt;
* For more information about the ESAPI, please view the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation].&lt;br /&gt;
&lt;br /&gt;
* If you are generating your own Javadocs for the ESAPI project, information regarding generation can be found [https://www.owasp.org/index.php/ESAPI_Javadocs here].&lt;br /&gt;
&lt;br /&gt;
==Changing/Building/Using the ESAPI==&lt;br /&gt;
If you would like to work with the ESAPI source code, or build the project, please [[ESAPI-Building | see here]].&lt;br /&gt;
&lt;br /&gt;
===Using the ESAPI===&lt;br /&gt;
If you want to see what the ESAPI is all about, and want to use the built-in implementations,&lt;br /&gt;
* Download the latest version of the ESAPI JAR from above.&lt;br /&gt;
* Add the ESAPI JAR to your project's build path.&lt;br /&gt;
* At the moment, ESAPI is set up for Java 1.4.2.  If you would like to use the ESAPI reference implementations with a Java 1.6 application, there are some lines of code that need to be uncommented.  Please see [https://www.owasp.org/index.php/ESAPI-Building here] for information on editing the ESAPI.  More information regarding this topic will be added to the Wiki soon.  For now, please contact [http://www.owasp.org/index.php/User:Jeff_Williams Jeff Williams] if you plan to use ESAPI with a Java 1.6 project.&lt;br /&gt;
* As stated above, ESAPI requires Java 1.4.2.  Be sure to set your workspace settings regarding this.&lt;br /&gt;
* Use the [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html ESAPI's Javadocs ] to take advantage of all the built-in functions of the ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Running Demo App===&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is [[ESAPI_Swingset | available here]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
&lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
==Licensing==&lt;br /&gt;
This project licensed under the [http://en.wikipedia.org/wiki/BSD_license BSD license], which is very permissive and about as close to public domain as is possible. You can use or modify ESAPI however you want, even include it in commercial products.&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Download]]&lt;br /&gt;
[[Category:OWASP Project]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45290</id>
		<title>ESAPI Swingset</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45290"/>
				<updated>2008-10-31T20:08:07Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Download/Run */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ESAPI Swingset is a web application which demonstrates the many uses of the Enterprise Security API ([[ESAPI]]).&lt;br /&gt;
&lt;br /&gt;
Swingset is now in beta stage.  Much of Swingset is still incomplete, but many ESAPI functions are working.&lt;br /&gt;
==Download/Run==&lt;br /&gt;
This Swingset/Apache Tomcat bundle contains everything you need to get Swingset up and running in a matter of minutes.  No installation is necessary (assuming you have a Java JRE or JDK installed), just edit one line of a batch file or shell script and you're ready to go!&lt;br /&gt;
&lt;br /&gt;
'''Downloads&lt;br /&gt;
&lt;br /&gt;
Note: Version 04b require SSL for the login demo page.  Instructions are included in the version of 04b bundled with Tomcat.  If you do not know how/do not want to set up SSL on your own, it is recommended that you download the ESAPI Swingset 04b bundled with Apache Tomcat below.  In the root directory of the .zip file, there is a README with very simple instructions for setting up SSL for this application.  A .keystore file is provided, so user's will not have to generate their own keys.&lt;br /&gt;
&lt;br /&gt;
Be aware, in some browsers, navigating to the login page will provide a warning that the digital signature provided may not be legitimate.  The certificate provided is self-signed for demonstration purposes.  The warning can safely be ignored for this page.  More detailed information will follow in the coming weeks.'''&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset/Apache Tomcat Bundle===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/Swingset__with_tomcat_04b.zip ESAPI Swingset 04b bundled with Apache Tomcat]]&lt;br /&gt;
Added: October 31, 2008&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*Apache Tomcat version 6.0.18&lt;br /&gt;
*ESAPI Swingset application&lt;br /&gt;
*Batch file for easy loading of Apache Tomcat in Windows&lt;br /&gt;
*Readme file with easy setup instructions&lt;br /&gt;
*Shell script for easy loading of Apache Tomcat in Unix will be bundled soon&lt;br /&gt;
*Everything you need to try Swingset&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset Source Code===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_04b.zip ESAPI Swingset 04b Source Code]]&lt;br /&gt;
Added: October 31, 2008&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*All ESAPI Swingset source files&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset WAR file===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_04b.war ESAPI Swingset 04b WAR file]]&lt;br /&gt;
Added: October 31, 2008&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*The ESAPI Swingset WAR file -- just drop it in your Apache Tomcat Webapps directory and you're ready to go&lt;br /&gt;
Note: the Secure Login page requires SSL be configured on your web server!&lt;br /&gt;
&lt;br /&gt;
==Download the JRE or JDK==&lt;br /&gt;
If it is not already installed, please download a Java JRE or JDK version 5 or later.  &lt;br /&gt;
Please note that, Tomcat 5.5 and above uses the Eclipse JDT Java compiler for compiling&lt;br /&gt;
JSP pages.  This means you no longer need to have the complete&lt;br /&gt;
Java Development Kit (JDK) to run Tomcat, but a Java Runtime Environment&lt;br /&gt;
(JRE) is sufficient.&lt;br /&gt;
*The Java JRE is available [http://java.com/en/download/ here]&lt;br /&gt;
*The Java JDK is available [http://java.sun.com/javase/downloads/index.jsp here]&lt;br /&gt;
&lt;br /&gt;
==Setup and Run Swingset==&lt;br /&gt;
===Setup Swingset for Windows===&lt;br /&gt;
#Extract ESAPI_Swingset.zip to a directory of your choice.&lt;br /&gt;
#Open Windows Explorer and Navigate to the directory to which ESAPI_Swingset.zip was extracted&lt;br /&gt;
#Open Tomcat_6.0.18_start.bat with notepad&lt;br /&gt;
#Set either of the two, JRE_HOME or JAVA_HOME enviornment variable for Tomcat to run.&lt;br /&gt;
#Save the file&lt;br /&gt;
&lt;br /&gt;
:* To set JAVA_HOME environment variable.  You need to change the line &amp;quot;set JAVA_HOME=jdk_directory&amp;quot; to your Java install directory, where &amp;quot;jdk_directory&amp;quot; is the root of your   Java directory. For many, the line will look like: &amp;quot;set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_10&amp;quot;. Please remember that Swingset requires JDK/JRE version 5 or  higher.&lt;br /&gt;
:* To set JRE_HOME change the &amp;quot;JRE_HOME=C:\Program Files\Java\jre1.6.0_10&amp;quot; so that it points to your JRE installation directory&lt;br /&gt;
&lt;br /&gt;
===Running Swingset on Windows===&lt;br /&gt;
#Navigate to the ESAPI_Swingset directory&lt;br /&gt;
#Execute Tomcat_6.0.18_start.bat.  This can be done through the command line or by double clicking the file.&lt;br /&gt;
#If you followed the installation instructions in this wiki, Tomcat should now be running&lt;br /&gt;
#Open a web browser and navigate to [http://localhost:8080/main http://localhost:8080/main]&lt;br /&gt;
#You should see the ESAPI Swingset start page&lt;br /&gt;
&lt;br /&gt;
==How Can I help with Swingset==&lt;br /&gt;
The ESAPI Swingset is still in an early beta stage.  Many pages within Swingset are still incomplete, and we could certainly use some help getting them finished.  If you are interested in helping, please check out Swingset's [[http://code.google.com/p/owasp-esapi-java-swingset/source/checkout SVN repository]].  &lt;br /&gt;
&lt;br /&gt;
If you have any ideas for how the ESAPI Swingset could be better, or if you would like to submit new code, please contact [[User:Jeff Williams|Jeff Williams]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
[[Category: OWASP Download]]&lt;br /&gt;
[[Category: OWASP Project]]&lt;br /&gt;
[[Category: OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45286</id>
		<title>ESAPI Swingset</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45286"/>
				<updated>2008-10-31T18:30:13Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* ESAPI Swingset WAR file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ESAPI Swingset is a web application which demonstrates the many uses of the Enterprise Security API ([[ESAPI]]).&lt;br /&gt;
&lt;br /&gt;
Swingset is now in beta stage.  Much of Swingset is still incomplete, but many ESAPI functions are working.&lt;br /&gt;
==Download/Run==&lt;br /&gt;
This Swingset/Apache Tomcat bundle contains everything you need to get Swingset up and running in a matter of minutes.  No installation is necessary (assuming you have a Java JRE or JDK installed), just edit one line of a batch file or shell script and you're ready to go!&lt;br /&gt;
&lt;br /&gt;
'''Downloads&lt;br /&gt;
&lt;br /&gt;
Note: Version 03b require SSL for the login demo page.  Instructions are included in the version of 03b bundled with Tomcat.  If you do not know how/do not want to set up SSL on your own, it is recommended that you download the ESAPI Swingset 03b bundled with Apache Tomcat below.  In the root directory of the .zip file, there is a README with very simple instructions for setting up SSL for this application.  A .keystore file is provided, so user's will not have to generate their own keys.&lt;br /&gt;
&lt;br /&gt;
Be aware, in some browsers, navigating to the login page will provide a warning that the digital signature provided may not be legitimate.  The certificate provided is self-signed for demonstration purposes.  The warning can safely be ignored for this page.  More detailed information will follow in the coming weeks.'''&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset/Apache Tomcat Bundle===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/Swingset__with_tomcat_04b.zip ESAPI Swingset 04b bundled with Apache Tomcat]]&lt;br /&gt;
Added: October 31, 2008&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*Apache Tomcat version 6.0.18&lt;br /&gt;
*ESAPI Swingset application&lt;br /&gt;
*Batch file for easy loading of Apache Tomcat in Windows&lt;br /&gt;
*Readme file with easy setup instructions&lt;br /&gt;
*Shell script for easy loading of Apache Tomcat in Unix will be bundled soon&lt;br /&gt;
*Everything you need to try Swingset&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset Source Code===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_04b.zip ESAPI Swingset 04b Source Code]]&lt;br /&gt;
Added: October 31, 2008&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*All ESAPI Swingset source files&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset WAR file===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_04b.war ESAPI Swingset 04b WAR file]]&lt;br /&gt;
Added: October 31, 2008&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*The ESAPI Swingset WAR file -- just drop it in your Apache Tomcat Webapps directory and you're ready to go&lt;br /&gt;
Note: the Secure Login page requires SSL be configured on your web server!&lt;br /&gt;
&lt;br /&gt;
==Download the JRE or JDK==&lt;br /&gt;
If it is not already installed, please download a Java JRE or JDK version 5 or later.  &lt;br /&gt;
Please note that, Tomcat 5.5 and above uses the Eclipse JDT Java compiler for compiling&lt;br /&gt;
JSP pages.  This means you no longer need to have the complete&lt;br /&gt;
Java Development Kit (JDK) to run Tomcat, but a Java Runtime Environment&lt;br /&gt;
(JRE) is sufficient.&lt;br /&gt;
*The Java JRE is available [http://java.com/en/download/ here]&lt;br /&gt;
*The Java JDK is available [http://java.sun.com/javase/downloads/index.jsp here]&lt;br /&gt;
&lt;br /&gt;
==Setup and Run Swingset==&lt;br /&gt;
===Setup Swingset for Windows===&lt;br /&gt;
#Extract ESAPI_Swingset.zip to a directory of your choice.&lt;br /&gt;
#Open Windows Explorer and Navigate to the directory to which ESAPI_Swingset.zip was extracted&lt;br /&gt;
#Open Tomcat_6.0.18_start.bat with notepad&lt;br /&gt;
#Set either of the two, JRE_HOME or JAVA_HOME enviornment variable for Tomcat to run.&lt;br /&gt;
#Save the file&lt;br /&gt;
&lt;br /&gt;
:* To set JAVA_HOME environment variable.  You need to change the line &amp;quot;set JAVA_HOME=jdk_directory&amp;quot; to your Java install directory, where &amp;quot;jdk_directory&amp;quot; is the root of your   Java directory. For many, the line will look like: &amp;quot;set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_10&amp;quot;. Please remember that Swingset requires JDK/JRE version 5 or  higher.&lt;br /&gt;
:* To set JRE_HOME change the &amp;quot;JRE_HOME=C:\Program Files\Java\jre1.6.0_10&amp;quot; so that it points to your JRE installation directory&lt;br /&gt;
&lt;br /&gt;
===Running Swingset on Windows===&lt;br /&gt;
#Navigate to the ESAPI_Swingset directory&lt;br /&gt;
#Execute Tomcat_6.0.18_start.bat.  This can be done through the command line or by double clicking the file.&lt;br /&gt;
#If you followed the installation instructions in this wiki, Tomcat should now be running&lt;br /&gt;
#Open a web browser and navigate to [http://localhost:8080/main http://localhost:8080/main]&lt;br /&gt;
#You should see the ESAPI Swingset start page&lt;br /&gt;
&lt;br /&gt;
==How Can I help with Swingset==&lt;br /&gt;
The ESAPI Swingset is still in an early beta stage.  Many pages within Swingset are still incomplete, and we could certainly use some help getting them finished.  If you are interested in helping, please check out Swingset's [[http://code.google.com/p/owasp-esapi-java-swingset/source/checkout SVN repository]].  &lt;br /&gt;
&lt;br /&gt;
If you have any ideas for how the ESAPI Swingset could be better, or if you would like to submit new code, please contact [[User:Jeff Williams|Jeff Williams]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
[[Category: OWASP Download]]&lt;br /&gt;
[[Category: OWASP Project]]&lt;br /&gt;
[[Category: OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45285</id>
		<title>ESAPI Swingset</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45285"/>
				<updated>2008-10-31T18:29:43Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* ESAPI Swingset WAR file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ESAPI Swingset is a web application which demonstrates the many uses of the Enterprise Security API ([[ESAPI]]).&lt;br /&gt;
&lt;br /&gt;
Swingset is now in beta stage.  Much of Swingset is still incomplete, but many ESAPI functions are working.&lt;br /&gt;
==Download/Run==&lt;br /&gt;
This Swingset/Apache Tomcat bundle contains everything you need to get Swingset up and running in a matter of minutes.  No installation is necessary (assuming you have a Java JRE or JDK installed), just edit one line of a batch file or shell script and you're ready to go!&lt;br /&gt;
&lt;br /&gt;
'''Downloads&lt;br /&gt;
&lt;br /&gt;
Note: Version 03b require SSL for the login demo page.  Instructions are included in the version of 03b bundled with Tomcat.  If you do not know how/do not want to set up SSL on your own, it is recommended that you download the ESAPI Swingset 03b bundled with Apache Tomcat below.  In the root directory of the .zip file, there is a README with very simple instructions for setting up SSL for this application.  A .keystore file is provided, so user's will not have to generate their own keys.&lt;br /&gt;
&lt;br /&gt;
Be aware, in some browsers, navigating to the login page will provide a warning that the digital signature provided may not be legitimate.  The certificate provided is self-signed for demonstration purposes.  The warning can safely be ignored for this page.  More detailed information will follow in the coming weeks.'''&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset/Apache Tomcat Bundle===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/Swingset__with_tomcat_04b.zip ESAPI Swingset 04b bundled with Apache Tomcat]]&lt;br /&gt;
Added: October 31, 2008&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*Apache Tomcat version 6.0.18&lt;br /&gt;
*ESAPI Swingset application&lt;br /&gt;
*Batch file for easy loading of Apache Tomcat in Windows&lt;br /&gt;
*Readme file with easy setup instructions&lt;br /&gt;
*Shell script for easy loading of Apache Tomcat in Unix will be bundled soon&lt;br /&gt;
*Everything you need to try Swingset&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset Source Code===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_04b.zip ESAPI Swingset 04b Source Code]]&lt;br /&gt;
Added: October 31, 2008&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*All ESAPI Swingset source files&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset WAR file===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_04b.war ESAPI Swingset 04b WAR file]]&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*The ESAPI Swingset WAR file -- just drop it in your Apache Tomcat Webapps directory and you're ready to go&lt;br /&gt;
Note: the Secure Login page requires SSL be configured on your web server!&lt;br /&gt;
&lt;br /&gt;
==Download the JRE or JDK==&lt;br /&gt;
If it is not already installed, please download a Java JRE or JDK version 5 or later.  &lt;br /&gt;
Please note that, Tomcat 5.5 and above uses the Eclipse JDT Java compiler for compiling&lt;br /&gt;
JSP pages.  This means you no longer need to have the complete&lt;br /&gt;
Java Development Kit (JDK) to run Tomcat, but a Java Runtime Environment&lt;br /&gt;
(JRE) is sufficient.&lt;br /&gt;
*The Java JRE is available [http://java.com/en/download/ here]&lt;br /&gt;
*The Java JDK is available [http://java.sun.com/javase/downloads/index.jsp here]&lt;br /&gt;
&lt;br /&gt;
==Setup and Run Swingset==&lt;br /&gt;
===Setup Swingset for Windows===&lt;br /&gt;
#Extract ESAPI_Swingset.zip to a directory of your choice.&lt;br /&gt;
#Open Windows Explorer and Navigate to the directory to which ESAPI_Swingset.zip was extracted&lt;br /&gt;
#Open Tomcat_6.0.18_start.bat with notepad&lt;br /&gt;
#Set either of the two, JRE_HOME or JAVA_HOME enviornment variable for Tomcat to run.&lt;br /&gt;
#Save the file&lt;br /&gt;
&lt;br /&gt;
:* To set JAVA_HOME environment variable.  You need to change the line &amp;quot;set JAVA_HOME=jdk_directory&amp;quot; to your Java install directory, where &amp;quot;jdk_directory&amp;quot; is the root of your   Java directory. For many, the line will look like: &amp;quot;set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_10&amp;quot;. Please remember that Swingset requires JDK/JRE version 5 or  higher.&lt;br /&gt;
:* To set JRE_HOME change the &amp;quot;JRE_HOME=C:\Program Files\Java\jre1.6.0_10&amp;quot; so that it points to your JRE installation directory&lt;br /&gt;
&lt;br /&gt;
===Running Swingset on Windows===&lt;br /&gt;
#Navigate to the ESAPI_Swingset directory&lt;br /&gt;
#Execute Tomcat_6.0.18_start.bat.  This can be done through the command line or by double clicking the file.&lt;br /&gt;
#If you followed the installation instructions in this wiki, Tomcat should now be running&lt;br /&gt;
#Open a web browser and navigate to [http://localhost:8080/main http://localhost:8080/main]&lt;br /&gt;
#You should see the ESAPI Swingset start page&lt;br /&gt;
&lt;br /&gt;
==How Can I help with Swingset==&lt;br /&gt;
The ESAPI Swingset is still in an early beta stage.  Many pages within Swingset are still incomplete, and we could certainly use some help getting them finished.  If you are interested in helping, please check out Swingset's [[http://code.google.com/p/owasp-esapi-java-swingset/source/checkout SVN repository]].  &lt;br /&gt;
&lt;br /&gt;
If you have any ideas for how the ESAPI Swingset could be better, or if you would like to submit new code, please contact [[User:Jeff Williams|Jeff Williams]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
[[Category: OWASP Download]]&lt;br /&gt;
[[Category: OWASP Project]]&lt;br /&gt;
[[Category: OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45284</id>
		<title>ESAPI Swingset</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45284"/>
				<updated>2008-10-31T18:28:51Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* ESAPI Swingset WAR file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ESAPI Swingset is a web application which demonstrates the many uses of the Enterprise Security API ([[ESAPI]]).&lt;br /&gt;
&lt;br /&gt;
Swingset is now in beta stage.  Much of Swingset is still incomplete, but many ESAPI functions are working.&lt;br /&gt;
==Download/Run==&lt;br /&gt;
This Swingset/Apache Tomcat bundle contains everything you need to get Swingset up and running in a matter of minutes.  No installation is necessary (assuming you have a Java JRE or JDK installed), just edit one line of a batch file or shell script and you're ready to go!&lt;br /&gt;
&lt;br /&gt;
'''Downloads&lt;br /&gt;
&lt;br /&gt;
Note: Version 03b require SSL for the login demo page.  Instructions are included in the version of 03b bundled with Tomcat.  If you do not know how/do not want to set up SSL on your own, it is recommended that you download the ESAPI Swingset 03b bundled with Apache Tomcat below.  In the root directory of the .zip file, there is a README with very simple instructions for setting up SSL for this application.  A .keystore file is provided, so user's will not have to generate their own keys.&lt;br /&gt;
&lt;br /&gt;
Be aware, in some browsers, navigating to the login page will provide a warning that the digital signature provided may not be legitimate.  The certificate provided is self-signed for demonstration purposes.  The warning can safely be ignored for this page.  More detailed information will follow in the coming weeks.'''&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset/Apache Tomcat Bundle===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/Swingset__with_tomcat_04b.zip ESAPI Swingset 04b bundled with Apache Tomcat]]&lt;br /&gt;
Added: October 31, 2008&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*Apache Tomcat version 6.0.18&lt;br /&gt;
*ESAPI Swingset application&lt;br /&gt;
*Batch file for easy loading of Apache Tomcat in Windows&lt;br /&gt;
*Readme file with easy setup instructions&lt;br /&gt;
*Shell script for easy loading of Apache Tomcat in Unix will be bundled soon&lt;br /&gt;
*Everything you need to try Swingset&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset Source Code===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_04b.zip ESAPI Swingset 04b Source Code]]&lt;br /&gt;
Added: October 31, 2008&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*All ESAPI Swingset source files&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset WAR file===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_04b.war ESAPI Swingset 04b WAR file]]&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*The ESAPI Swingset WAR file -- just drop it in your Apache Tomcat Webapps directory and you're ready to go&lt;br /&gt;
&lt;br /&gt;
==Download the JRE or JDK==&lt;br /&gt;
If it is not already installed, please download a Java JRE or JDK version 5 or later.  &lt;br /&gt;
Please note that, Tomcat 5.5 and above uses the Eclipse JDT Java compiler for compiling&lt;br /&gt;
JSP pages.  This means you no longer need to have the complete&lt;br /&gt;
Java Development Kit (JDK) to run Tomcat, but a Java Runtime Environment&lt;br /&gt;
(JRE) is sufficient.&lt;br /&gt;
*The Java JRE is available [http://java.com/en/download/ here]&lt;br /&gt;
*The Java JDK is available [http://java.sun.com/javase/downloads/index.jsp here]&lt;br /&gt;
&lt;br /&gt;
==Setup and Run Swingset==&lt;br /&gt;
===Setup Swingset for Windows===&lt;br /&gt;
#Extract ESAPI_Swingset.zip to a directory of your choice.&lt;br /&gt;
#Open Windows Explorer and Navigate to the directory to which ESAPI_Swingset.zip was extracted&lt;br /&gt;
#Open Tomcat_6.0.18_start.bat with notepad&lt;br /&gt;
#Set either of the two, JRE_HOME or JAVA_HOME enviornment variable for Tomcat to run.&lt;br /&gt;
#Save the file&lt;br /&gt;
&lt;br /&gt;
:* To set JAVA_HOME environment variable.  You need to change the line &amp;quot;set JAVA_HOME=jdk_directory&amp;quot; to your Java install directory, where &amp;quot;jdk_directory&amp;quot; is the root of your   Java directory. For many, the line will look like: &amp;quot;set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_10&amp;quot;. Please remember that Swingset requires JDK/JRE version 5 or  higher.&lt;br /&gt;
:* To set JRE_HOME change the &amp;quot;JRE_HOME=C:\Program Files\Java\jre1.6.0_10&amp;quot; so that it points to your JRE installation directory&lt;br /&gt;
&lt;br /&gt;
===Running Swingset on Windows===&lt;br /&gt;
#Navigate to the ESAPI_Swingset directory&lt;br /&gt;
#Execute Tomcat_6.0.18_start.bat.  This can be done through the command line or by double clicking the file.&lt;br /&gt;
#If you followed the installation instructions in this wiki, Tomcat should now be running&lt;br /&gt;
#Open a web browser and navigate to [http://localhost:8080/main http://localhost:8080/main]&lt;br /&gt;
#You should see the ESAPI Swingset start page&lt;br /&gt;
&lt;br /&gt;
==How Can I help with Swingset==&lt;br /&gt;
The ESAPI Swingset is still in an early beta stage.  Many pages within Swingset are still incomplete, and we could certainly use some help getting them finished.  If you are interested in helping, please check out Swingset's [[http://code.google.com/p/owasp-esapi-java-swingset/source/checkout SVN repository]].  &lt;br /&gt;
&lt;br /&gt;
If you have any ideas for how the ESAPI Swingset could be better, or if you would like to submit new code, please contact [[User:Jeff Williams|Jeff Williams]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
[[Category: OWASP Download]]&lt;br /&gt;
[[Category: OWASP Project]]&lt;br /&gt;
[[Category: OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45283</id>
		<title>ESAPI Swingset</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45283"/>
				<updated>2008-10-31T18:28:34Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* ESAPI Swingset Source Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ESAPI Swingset is a web application which demonstrates the many uses of the Enterprise Security API ([[ESAPI]]).&lt;br /&gt;
&lt;br /&gt;
Swingset is now in beta stage.  Much of Swingset is still incomplete, but many ESAPI functions are working.&lt;br /&gt;
==Download/Run==&lt;br /&gt;
This Swingset/Apache Tomcat bundle contains everything you need to get Swingset up and running in a matter of minutes.  No installation is necessary (assuming you have a Java JRE or JDK installed), just edit one line of a batch file or shell script and you're ready to go!&lt;br /&gt;
&lt;br /&gt;
'''Downloads&lt;br /&gt;
&lt;br /&gt;
Note: Version 03b require SSL for the login demo page.  Instructions are included in the version of 03b bundled with Tomcat.  If you do not know how/do not want to set up SSL on your own, it is recommended that you download the ESAPI Swingset 03b bundled with Apache Tomcat below.  In the root directory of the .zip file, there is a README with very simple instructions for setting up SSL for this application.  A .keystore file is provided, so user's will not have to generate their own keys.&lt;br /&gt;
&lt;br /&gt;
Be aware, in some browsers, navigating to the login page will provide a warning that the digital signature provided may not be legitimate.  The certificate provided is self-signed for demonstration purposes.  The warning can safely be ignored for this page.  More detailed information will follow in the coming weeks.'''&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset/Apache Tomcat Bundle===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/Swingset__with_tomcat_04b.zip ESAPI Swingset 04b bundled with Apache Tomcat]]&lt;br /&gt;
Added: October 31, 2008&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*Apache Tomcat version 6.0.18&lt;br /&gt;
*ESAPI Swingset application&lt;br /&gt;
*Batch file for easy loading of Apache Tomcat in Windows&lt;br /&gt;
*Readme file with easy setup instructions&lt;br /&gt;
*Shell script for easy loading of Apache Tomcat in Unix will be bundled soon&lt;br /&gt;
*Everything you need to try Swingset&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset Source Code===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_04b.zip ESAPI Swingset 04b Source Code]]&lt;br /&gt;
Added: October 31, 2008&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*All ESAPI Swingset source files&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset WAR file===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_03b.war ESAPI Swingset 03b WAR file]]&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*The ESAPI Swingset WAR file -- just drop it in your Apache Tomcat Webapps directory and you're ready to go&lt;br /&gt;
&lt;br /&gt;
==Download the JRE or JDK==&lt;br /&gt;
If it is not already installed, please download a Java JRE or JDK version 5 or later.  &lt;br /&gt;
Please note that, Tomcat 5.5 and above uses the Eclipse JDT Java compiler for compiling&lt;br /&gt;
JSP pages.  This means you no longer need to have the complete&lt;br /&gt;
Java Development Kit (JDK) to run Tomcat, but a Java Runtime Environment&lt;br /&gt;
(JRE) is sufficient.&lt;br /&gt;
*The Java JRE is available [http://java.com/en/download/ here]&lt;br /&gt;
*The Java JDK is available [http://java.sun.com/javase/downloads/index.jsp here]&lt;br /&gt;
&lt;br /&gt;
==Setup and Run Swingset==&lt;br /&gt;
===Setup Swingset for Windows===&lt;br /&gt;
#Extract ESAPI_Swingset.zip to a directory of your choice.&lt;br /&gt;
#Open Windows Explorer and Navigate to the directory to which ESAPI_Swingset.zip was extracted&lt;br /&gt;
#Open Tomcat_6.0.18_start.bat with notepad&lt;br /&gt;
#Set either of the two, JRE_HOME or JAVA_HOME enviornment variable for Tomcat to run.&lt;br /&gt;
#Save the file&lt;br /&gt;
&lt;br /&gt;
:* To set JAVA_HOME environment variable.  You need to change the line &amp;quot;set JAVA_HOME=jdk_directory&amp;quot; to your Java install directory, where &amp;quot;jdk_directory&amp;quot; is the root of your   Java directory. For many, the line will look like: &amp;quot;set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_10&amp;quot;. Please remember that Swingset requires JDK/JRE version 5 or  higher.&lt;br /&gt;
:* To set JRE_HOME change the &amp;quot;JRE_HOME=C:\Program Files\Java\jre1.6.0_10&amp;quot; so that it points to your JRE installation directory&lt;br /&gt;
&lt;br /&gt;
===Running Swingset on Windows===&lt;br /&gt;
#Navigate to the ESAPI_Swingset directory&lt;br /&gt;
#Execute Tomcat_6.0.18_start.bat.  This can be done through the command line or by double clicking the file.&lt;br /&gt;
#If you followed the installation instructions in this wiki, Tomcat should now be running&lt;br /&gt;
#Open a web browser and navigate to [http://localhost:8080/main http://localhost:8080/main]&lt;br /&gt;
#You should see the ESAPI Swingset start page&lt;br /&gt;
&lt;br /&gt;
==How Can I help with Swingset==&lt;br /&gt;
The ESAPI Swingset is still in an early beta stage.  Many pages within Swingset are still incomplete, and we could certainly use some help getting them finished.  If you are interested in helping, please check out Swingset's [[http://code.google.com/p/owasp-esapi-java-swingset/source/checkout SVN repository]].  &lt;br /&gt;
&lt;br /&gt;
If you have any ideas for how the ESAPI Swingset could be better, or if you would like to submit new code, please contact [[User:Jeff Williams|Jeff Williams]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
[[Category: OWASP Download]]&lt;br /&gt;
[[Category: OWASP Project]]&lt;br /&gt;
[[Category: OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45282</id>
		<title>ESAPI Swingset</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45282"/>
				<updated>2008-10-31T18:27:36Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* ESAPI Swingset/Apache Tomcat Bundle */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ESAPI Swingset is a web application which demonstrates the many uses of the Enterprise Security API ([[ESAPI]]).&lt;br /&gt;
&lt;br /&gt;
Swingset is now in beta stage.  Much of Swingset is still incomplete, but many ESAPI functions are working.&lt;br /&gt;
==Download/Run==&lt;br /&gt;
This Swingset/Apache Tomcat bundle contains everything you need to get Swingset up and running in a matter of minutes.  No installation is necessary (assuming you have a Java JRE or JDK installed), just edit one line of a batch file or shell script and you're ready to go!&lt;br /&gt;
&lt;br /&gt;
'''Downloads&lt;br /&gt;
&lt;br /&gt;
Note: Version 03b require SSL for the login demo page.  Instructions are included in the version of 03b bundled with Tomcat.  If you do not know how/do not want to set up SSL on your own, it is recommended that you download the ESAPI Swingset 03b bundled with Apache Tomcat below.  In the root directory of the .zip file, there is a README with very simple instructions for setting up SSL for this application.  A .keystore file is provided, so user's will not have to generate their own keys.&lt;br /&gt;
&lt;br /&gt;
Be aware, in some browsers, navigating to the login page will provide a warning that the digital signature provided may not be legitimate.  The certificate provided is self-signed for demonstration purposes.  The warning can safely be ignored for this page.  More detailed information will follow in the coming weeks.'''&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset/Apache Tomcat Bundle===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/Swingset__with_tomcat_04b.zip ESAPI Swingset 04b bundled with Apache Tomcat]]&lt;br /&gt;
Added: October 31, 2008&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*Apache Tomcat version 6.0.18&lt;br /&gt;
*ESAPI Swingset application&lt;br /&gt;
*Batch file for easy loading of Apache Tomcat in Windows&lt;br /&gt;
*Readme file with easy setup instructions&lt;br /&gt;
*Shell script for easy loading of Apache Tomcat in Unix will be bundled soon&lt;br /&gt;
*Everything you need to try Swingset&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset Source Code===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_03b.zip ESAPI Swingset 03b Source Code]]&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*All ESAPI Swingset source files&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset WAR file===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_03b.war ESAPI Swingset 03b WAR file]]&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*The ESAPI Swingset WAR file -- just drop it in your Apache Tomcat Webapps directory and you're ready to go&lt;br /&gt;
&lt;br /&gt;
==Download the JRE or JDK==&lt;br /&gt;
If it is not already installed, please download a Java JRE or JDK version 5 or later.  &lt;br /&gt;
Please note that, Tomcat 5.5 and above uses the Eclipse JDT Java compiler for compiling&lt;br /&gt;
JSP pages.  This means you no longer need to have the complete&lt;br /&gt;
Java Development Kit (JDK) to run Tomcat, but a Java Runtime Environment&lt;br /&gt;
(JRE) is sufficient.&lt;br /&gt;
*The Java JRE is available [http://java.com/en/download/ here]&lt;br /&gt;
*The Java JDK is available [http://java.sun.com/javase/downloads/index.jsp here]&lt;br /&gt;
&lt;br /&gt;
==Setup and Run Swingset==&lt;br /&gt;
===Setup Swingset for Windows===&lt;br /&gt;
#Extract ESAPI_Swingset.zip to a directory of your choice.&lt;br /&gt;
#Open Windows Explorer and Navigate to the directory to which ESAPI_Swingset.zip was extracted&lt;br /&gt;
#Open Tomcat_6.0.18_start.bat with notepad&lt;br /&gt;
#Set either of the two, JRE_HOME or JAVA_HOME enviornment variable for Tomcat to run.&lt;br /&gt;
#Save the file&lt;br /&gt;
&lt;br /&gt;
:* To set JAVA_HOME environment variable.  You need to change the line &amp;quot;set JAVA_HOME=jdk_directory&amp;quot; to your Java install directory, where &amp;quot;jdk_directory&amp;quot; is the root of your   Java directory. For many, the line will look like: &amp;quot;set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_10&amp;quot;. Please remember that Swingset requires JDK/JRE version 5 or  higher.&lt;br /&gt;
:* To set JRE_HOME change the &amp;quot;JRE_HOME=C:\Program Files\Java\jre1.6.0_10&amp;quot; so that it points to your JRE installation directory&lt;br /&gt;
&lt;br /&gt;
===Running Swingset on Windows===&lt;br /&gt;
#Navigate to the ESAPI_Swingset directory&lt;br /&gt;
#Execute Tomcat_6.0.18_start.bat.  This can be done through the command line or by double clicking the file.&lt;br /&gt;
#If you followed the installation instructions in this wiki, Tomcat should now be running&lt;br /&gt;
#Open a web browser and navigate to [http://localhost:8080/main http://localhost:8080/main]&lt;br /&gt;
#You should see the ESAPI Swingset start page&lt;br /&gt;
&lt;br /&gt;
==How Can I help with Swingset==&lt;br /&gt;
The ESAPI Swingset is still in an early beta stage.  Many pages within Swingset are still incomplete, and we could certainly use some help getting them finished.  If you are interested in helping, please check out Swingset's [[http://code.google.com/p/owasp-esapi-java-swingset/source/checkout SVN repository]].  &lt;br /&gt;
&lt;br /&gt;
If you have any ideas for how the ESAPI Swingset could be better, or if you would like to submit new code, please contact [[User:Jeff Williams|Jeff Williams]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
[[Category: OWASP Download]]&lt;br /&gt;
[[Category: OWASP Project]]&lt;br /&gt;
[[Category: OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45281</id>
		<title>ESAPI Swingset</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45281"/>
				<updated>2008-10-31T18:26:54Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* ESAPI Swingset/Apache Tomcat Bundle */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ESAPI Swingset is a web application which demonstrates the many uses of the Enterprise Security API ([[ESAPI]]).&lt;br /&gt;
&lt;br /&gt;
Swingset is now in beta stage.  Much of Swingset is still incomplete, but many ESAPI functions are working.&lt;br /&gt;
==Download/Run==&lt;br /&gt;
This Swingset/Apache Tomcat bundle contains everything you need to get Swingset up and running in a matter of minutes.  No installation is necessary (assuming you have a Java JRE or JDK installed), just edit one line of a batch file or shell script and you're ready to go!&lt;br /&gt;
&lt;br /&gt;
'''Downloads&lt;br /&gt;
&lt;br /&gt;
Note: Version 03b require SSL for the login demo page.  Instructions are included in the version of 03b bundled with Tomcat.  If you do not know how/do not want to set up SSL on your own, it is recommended that you download the ESAPI Swingset 03b bundled with Apache Tomcat below.  In the root directory of the .zip file, there is a README with very simple instructions for setting up SSL for this application.  A .keystore file is provided, so user's will not have to generate their own keys.&lt;br /&gt;
&lt;br /&gt;
Be aware, in some browsers, navigating to the login page will provide a warning that the digital signature provided may not be legitimate.  The certificate provided is self-signed for demonstration purposes.  The warning can safely be ignored for this page.  More detailed information will follow in the coming weeks.'''&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset/Apache Tomcat Bundle===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/Swingset__with_tomcat_04b.zip ESAPI Swingset 03b bundled with Apache Tomcat]]&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*Apache Tomcat version 6.0.18&lt;br /&gt;
*ESAPI Swingset application&lt;br /&gt;
*Batch file for easy loading of Apache Tomcat in Windows&lt;br /&gt;
*Readme file with easy setup instructions&lt;br /&gt;
*Shell script for easy loading of Apache Tomcat in Unix will be bundled soon&lt;br /&gt;
*Everything you need to try Swingset&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset Source Code===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_03b.zip ESAPI Swingset 03b Source Code]]&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*All ESAPI Swingset source files&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset WAR file===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_03b.war ESAPI Swingset 03b WAR file]]&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*The ESAPI Swingset WAR file -- just drop it in your Apache Tomcat Webapps directory and you're ready to go&lt;br /&gt;
&lt;br /&gt;
==Download the JRE or JDK==&lt;br /&gt;
If it is not already installed, please download a Java JRE or JDK version 5 or later.  &lt;br /&gt;
Please note that, Tomcat 5.5 and above uses the Eclipse JDT Java compiler for compiling&lt;br /&gt;
JSP pages.  This means you no longer need to have the complete&lt;br /&gt;
Java Development Kit (JDK) to run Tomcat, but a Java Runtime Environment&lt;br /&gt;
(JRE) is sufficient.&lt;br /&gt;
*The Java JRE is available [http://java.com/en/download/ here]&lt;br /&gt;
*The Java JDK is available [http://java.sun.com/javase/downloads/index.jsp here]&lt;br /&gt;
&lt;br /&gt;
==Setup and Run Swingset==&lt;br /&gt;
===Setup Swingset for Windows===&lt;br /&gt;
#Extract ESAPI_Swingset.zip to a directory of your choice.&lt;br /&gt;
#Open Windows Explorer and Navigate to the directory to which ESAPI_Swingset.zip was extracted&lt;br /&gt;
#Open Tomcat_6.0.18_start.bat with notepad&lt;br /&gt;
#Set either of the two, JRE_HOME or JAVA_HOME enviornment variable for Tomcat to run.&lt;br /&gt;
#Save the file&lt;br /&gt;
&lt;br /&gt;
:* To set JAVA_HOME environment variable.  You need to change the line &amp;quot;set JAVA_HOME=jdk_directory&amp;quot; to your Java install directory, where &amp;quot;jdk_directory&amp;quot; is the root of your   Java directory. For many, the line will look like: &amp;quot;set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_10&amp;quot;. Please remember that Swingset requires JDK/JRE version 5 or  higher.&lt;br /&gt;
:* To set JRE_HOME change the &amp;quot;JRE_HOME=C:\Program Files\Java\jre1.6.0_10&amp;quot; so that it points to your JRE installation directory&lt;br /&gt;
&lt;br /&gt;
===Running Swingset on Windows===&lt;br /&gt;
#Navigate to the ESAPI_Swingset directory&lt;br /&gt;
#Execute Tomcat_6.0.18_start.bat.  This can be done through the command line or by double clicking the file.&lt;br /&gt;
#If you followed the installation instructions in this wiki, Tomcat should now be running&lt;br /&gt;
#Open a web browser and navigate to [http://localhost:8080/main http://localhost:8080/main]&lt;br /&gt;
#You should see the ESAPI Swingset start page&lt;br /&gt;
&lt;br /&gt;
==How Can I help with Swingset==&lt;br /&gt;
The ESAPI Swingset is still in an early beta stage.  Many pages within Swingset are still incomplete, and we could certainly use some help getting them finished.  If you are interested in helping, please check out Swingset's [[http://code.google.com/p/owasp-esapi-java-swingset/source/checkout SVN repository]].  &lt;br /&gt;
&lt;br /&gt;
If you have any ideas for how the ESAPI Swingset could be better, or if you would like to submit new code, please contact [[User:Jeff Williams|Jeff Williams]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
[[Category: OWASP Download]]&lt;br /&gt;
[[Category: OWASP Project]]&lt;br /&gt;
[[Category: OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=45277</id>
		<title>ESAPI Javadocs</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Javadocs&amp;diff=45277"/>
				<updated>2008-10-31T16:07:36Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to create Javadocs for ESAPI using Eclipse v3.4==&lt;br /&gt;
First off, notice a folder called &amp;quot;javadoc resources&amp;quot; in the root directory of your ESAPI project.  This folder contains images referenced from the Javadoc as well as overview-summary.html, which is the title page for the ESAPI Javadoc.  The instructions below make reference to these files.&lt;br /&gt;
&lt;br /&gt;
===To Generate Javadocs===&lt;br /&gt;
# ''Be sure you are in the Java EE perspective.''  To change your perspective, click the ''Window'' button on the main toolbar.  Then click ''Open Perspective'' and choose ''Java EE''.  If Java EE is not in the list, select ''Other..'' and find ''Java EE''.  If Java EE is not in the list under Other, you may need to download Eclipse Ganymede (v3.4) for Java EE developers.  Javadoc creation functionality may be built into your version of Eclipse, but that has not been tested.&lt;br /&gt;
# Then, click the ''Project'' button on the main toolbar.  Select ''Generate Javadoc...''&lt;br /&gt;
# Find the Javadoc executable to use.  This is usually javadoc.exe within your java bin directory, as shown in figure 1.&lt;br /&gt;
# Select the ESAPI source, but not the test files within your ESAPI project, as shown in figure 1.&lt;br /&gt;
# You should create Javadoc for members with visibility: Package, as shown in figure 1.&lt;br /&gt;
# Select the Javadoc output directory.  This will likely be /doc under your ESAPI project folder.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 1:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/doc/org/owasp/esapi/doc-files/wiki/Generate%20Javadoc1.jpg&lt;br /&gt;
&lt;br /&gt;
# Designate a title for this Javadoc.  Generally, this should be &amp;quot;OWASP Enterprise Security API (ESAPI)&amp;quot;.&lt;br /&gt;
# Use Default: Under Basic Options, make sure all checkboxes are selected, as shown in Figure 2.&lt;br /&gt;
# Use Default: Make sure Javadocs for referenced archives are not generated, as shown in Figure 2.&lt;br /&gt;
# Use Default: No custom style sheet should be specified, as shown in Figure 2.&lt;br /&gt;
# Click ''Next''.&lt;br /&gt;
&lt;br /&gt;
Figure 2:&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/doc/org/owasp/esapi/doc-files/wiki/Generate%20Javadoc2.jpg&lt;br /&gt;
&lt;br /&gt;
# ''The Overview page must be selected, as shown in Figure 3''.  ''It should point to overview-summary.html in the javadoc resources folder''.&lt;br /&gt;
# Use Default: The JRE source compatibility should be selected as 1.4, as shown in Figure 3.&lt;br /&gt;
# Click ''Finish''.&lt;br /&gt;
&lt;br /&gt;
Figure 3: &lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/doc/org/owasp/esapi/doc-files/wiki/Generate%20Javadoc3.jpg&lt;br /&gt;
&lt;br /&gt;
# If it isn't already there, copy the folder &amp;quot;doc-files&amp;quot; from &amp;quot;javadoc resources&amp;quot; to org/owasp/esapi within your new javadoc directory.&lt;br /&gt;
# To view these new javadocs, double click on: &amp;lt;yourdocsfolder&amp;gt;/index.html&lt;br /&gt;
&lt;br /&gt;
=== Submitting these new javadocs to SVN ===&lt;br /&gt;
# To submit these newly generated javadocs, simply use Team --&amp;gt; Commit in Eclipse. Note: Please check in updates into the existing /doc directory, rather than creating a new directory.&lt;br /&gt;
# If you receive version control errors during the submit, follow the following steps:&lt;br /&gt;
* Navigate to your ESAPI Project/javadoc/org/owasp/esapi/doc-files directory.&lt;br /&gt;
* Delete the folder called .svn from this folder and all subdirectories (wiki).&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to svn:ignore...&amp;quot;.&lt;br /&gt;
* In the Navigator view in Eclipse, Right-click the doc-files folder again and select &amp;quot;Team&amp;quot; -&amp;gt; &amp;quot;Add to Version Control&amp;quot;.  You should receive a message saying that you previously asked to ignore this file.  Click yes.&lt;br /&gt;
&lt;br /&gt;
== Why do my newly generated Javadocs render as plain text in my browser? ==&lt;br /&gt;
Unfortunately, using this method of Javadoc generation does not set MIME types for the HTML files generated.  This means that to the browser, your HTML files are just text files, and will display as such.  Luckily Subclipse has a function to fix this.  We are going to tell Subclipse to automatically set the MIME type of HTML files to text/html and the MIME type of CSS files to text/css every time it commits a change.&lt;br /&gt;
&lt;br /&gt;
# The first thing you need to do is enable auto properties for your SVN client.  If you do not enable auto properties, you will have to manually set the properties (MIME type) of every HTML and CSS file.&lt;br /&gt;
* In Windows, open a terminal by typing &amp;quot;cmd&amp;quot; (with no quotes) into &amp;quot;Run&amp;quot; on the Start menu.  If you are using Vista, you can type &amp;quot;cmd&amp;quot; directly into the &amp;quot;Start Searching&amp;quot; bar.&lt;br /&gt;
* Type (again, and from now on, with no quotes) &amp;quot;cd %APPDATA%&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;cd Subversion&amp;quot; and hit enter.&lt;br /&gt;
* Type &amp;quot;notepad config&amp;quot;. This will open the SVN configuration file in notepad.&lt;br /&gt;
* Find the line &amp;quot;enable-auto-props = yes&amp;quot; and remove the # from the front of it.  This enables auto properties.&lt;br /&gt;
# Then, tell Subversion which MIME types to set for which files:&lt;br /&gt;
* Towards the bottom of the file, find a section called ''[auto-props]''.  Add the following to this section:&lt;br /&gt;
     *.html = svn:mime-type=text/html&lt;br /&gt;
     *.css = svn:mime-type=text/css&lt;br /&gt;
# Save the file.&lt;br /&gt;
''Any further commits to the SVN should set the MIME type properly.''&lt;br /&gt;
&lt;br /&gt;
Your Javadoc should be ready to commit and view!&lt;br /&gt;
&lt;br /&gt;
[[Category: OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45276</id>
		<title>ESAPI Swingset</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Swingset&amp;diff=45276"/>
				<updated>2008-10-31T16:06:57Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ESAPI Swingset is a web application which demonstrates the many uses of the Enterprise Security API ([[ESAPI]]).&lt;br /&gt;
&lt;br /&gt;
Swingset is now in beta stage.  Much of Swingset is still incomplete, but many ESAPI functions are working.&lt;br /&gt;
==Download/Run==&lt;br /&gt;
This Swingset/Apache Tomcat bundle contains everything you need to get Swingset up and running in a matter of minutes.  No installation is necessary (assuming you have a Java JRE or JDK installed), just edit one line of a batch file or shell script and you're ready to go!&lt;br /&gt;
&lt;br /&gt;
'''Downloads&lt;br /&gt;
&lt;br /&gt;
Note: Version 03b require SSL for the login demo page.  Instructions are included in the version of 03b bundled with Tomcat.  If you do not know how/do not want to set up SSL on your own, it is recommended that you download the ESAPI Swingset 03b bundled with Apache Tomcat below.  In the root directory of the .zip file, there is a README with very simple instructions for setting up SSL for this application.  A .keystore file is provided, so user's will not have to generate their own keys.&lt;br /&gt;
&lt;br /&gt;
Be aware, in some browsers, navigating to the login page will provide a warning that the digital signature provided may not be legitimate.  The certificate provided is self-signed for demonstration purposes.  The warning can safely be ignored for this page.  More detailed information will follow in the coming weeks.'''&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset/Apache Tomcat Bundle===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/Swingset__with_tomcat_03b.zip ESAPI Swingset 03b bundled with Apache Tomcat]]&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*Apache Tomcat version 6.0.18&lt;br /&gt;
*ESAPI Swingset application&lt;br /&gt;
*Batch file for easy loading of Apache Tomcat in Windows&lt;br /&gt;
*Shell script for easy loading of Apache Tomcat in Unix will be bundled soon&lt;br /&gt;
*Everything you need to try Swingset&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset Source Code===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_03b.zip ESAPI Swingset 03b Source Code]]&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*All ESAPI Swingset source files&lt;br /&gt;
&lt;br /&gt;
===ESAPI Swingset WAR file===&lt;br /&gt;
*[[http://owasp-esapi-java-swingset.googlecode.com/files/ESAPI_Swingset_03b.war ESAPI Swingset 03b WAR file]]&lt;br /&gt;
&lt;br /&gt;
'''What is included in this download?'''&lt;br /&gt;
&lt;br /&gt;
This download includes:&lt;br /&gt;
*The ESAPI Swingset WAR file -- just drop it in your Apache Tomcat Webapps directory and you're ready to go&lt;br /&gt;
&lt;br /&gt;
==Download the JRE or JDK==&lt;br /&gt;
If it is not already installed, please download a Java JRE or JDK version 5 or later.  &lt;br /&gt;
Please note that, Tomcat 5.5 and above uses the Eclipse JDT Java compiler for compiling&lt;br /&gt;
JSP pages.  This means you no longer need to have the complete&lt;br /&gt;
Java Development Kit (JDK) to run Tomcat, but a Java Runtime Environment&lt;br /&gt;
(JRE) is sufficient.&lt;br /&gt;
*The Java JRE is available [http://java.com/en/download/ here]&lt;br /&gt;
*The Java JDK is available [http://java.sun.com/javase/downloads/index.jsp here]&lt;br /&gt;
&lt;br /&gt;
==Setup and Run Swingset==&lt;br /&gt;
===Setup Swingset for Windows===&lt;br /&gt;
#Extract ESAPI_Swingset.zip to a directory of your choice.&lt;br /&gt;
#Open Windows Explorer and Navigate to the directory to which ESAPI_Swingset.zip was extracted&lt;br /&gt;
#Open Tomcat_6.0.18_start.bat with notepad&lt;br /&gt;
#Set either of the two, JRE_HOME or JAVA_HOME enviornment variable for Tomcat to run.&lt;br /&gt;
#Save the file&lt;br /&gt;
&lt;br /&gt;
:* To set JAVA_HOME environment variable.  You need to change the line &amp;quot;set JAVA_HOME=jdk_directory&amp;quot; to your Java install directory, where &amp;quot;jdk_directory&amp;quot; is the root of your   Java directory. For many, the line will look like: &amp;quot;set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_10&amp;quot;. Please remember that Swingset requires JDK/JRE version 5 or  higher.&lt;br /&gt;
:* To set JRE_HOME change the &amp;quot;JRE_HOME=C:\Program Files\Java\jre1.6.0_10&amp;quot; so that it points to your JRE installation directory&lt;br /&gt;
&lt;br /&gt;
===Running Swingset on Windows===&lt;br /&gt;
#Navigate to the ESAPI_Swingset directory&lt;br /&gt;
#Execute Tomcat_6.0.18_start.bat.  This can be done through the command line or by double clicking the file.&lt;br /&gt;
#If you followed the installation instructions in this wiki, Tomcat should now be running&lt;br /&gt;
#Open a web browser and navigate to [http://localhost:8080/main http://localhost:8080/main]&lt;br /&gt;
#You should see the ESAPI Swingset start page&lt;br /&gt;
&lt;br /&gt;
==How Can I help with Swingset==&lt;br /&gt;
The ESAPI Swingset is still in an early beta stage.  Many pages within Swingset are still incomplete, and we could certainly use some help getting them finished.  If you are interested in helping, please check out Swingset's [[http://code.google.com/p/owasp-esapi-java-swingset/source/checkout SVN repository]].  &lt;br /&gt;
&lt;br /&gt;
If you have any ideas for how the ESAPI Swingset could be better, or if you would like to submit new code, please contact [[User:Jeff Williams|Jeff Williams]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
[[Category: OWASP Download]]&lt;br /&gt;
[[Category: OWASP Project]]&lt;br /&gt;
[[Category: OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=44446</id>
		<title>Category:OWASP Enterprise Security API</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=44446"/>
				<updated>2008-10-23T15:56:15Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Using the ESAPI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=OWASP Enterprise Security API (ESAPI) Project=&lt;br /&gt;
&lt;br /&gt;
===What is ESAPI?===&lt;br /&gt;
The '''ESAPI''' is a free and open collection of all the security methods that a developer needs to build a secure web application. You can just use the interfaces and build your own implementation using your company's infrastructure. Or, you can use the reference implementation as a starting point. In concept, the API is language independent. However, the first deliverables from the project are a Java API and a Java reference implementation.  Efforts to build ESAPI in .NET and PHP are already underway.&lt;br /&gt;
&lt;br /&gt;
===Why ESAPI?===&lt;br /&gt;
Unfortunately, the available platforms, frameworks, and toolkits (Java EE, Struts, Spring, etc...) simply do not provide enough protection. This leaves developers with responsibility for designing and building security mechanisms.  This reinventing the wheel for every application leads to wasted time and massive security holes.&lt;br /&gt;
&lt;br /&gt;
The cost savings through reduced development time, and the increased security due to using heavily analyzed and carefully designed security methods provide developers with a massive advantage over organizations that are trying to deal with security using existing ad hoc secure coding techniques. This API is designed to automatically take care of many aspects of application security, making these issues invisible to the developers.&lt;br /&gt;
&lt;br /&gt;
===Where did ESAPI come from?===&lt;br /&gt;
The OWASP ESAPI project is led by [[User:Jeff Williams|Jeff Williams]], who serves as the volunteer chair of OWASP and is the CEO of Aspect Security. Jeff is a software developer who has specialized in application security since 1995. The ESAPI is the result of over a decade of code review and penetration testing of critical enterprise applications.  If you'd like to volunteer to help on the project, you can contact him at jeff.williams@owasp.org.&lt;br /&gt;
&lt;br /&gt;
More information about the ESAPI can be found in the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation]&lt;br /&gt;
&lt;br /&gt;
==Architecture==&lt;br /&gt;
&lt;br /&gt;
The ESAPI architecture is very simple, just a collection of classes that encapsulate the key security operations most applications need.  ESAPI is designed to make it easy to retrofit security into existing applications, as well as providing a solid foundation for new development.  New development projects should consider integrating ESAPI into their framework to make even more of the security happen automatically. ESAPI comes with an ESAPI filter that minimizes the changes required to your base application.&lt;br /&gt;
&lt;br /&gt;
The ESAPI covers most of the key security challenges facing application developers. ESAPI provides the capability for developers to create applications that are protected against almost all of the risks described in the OWASP [[Top Ten]]. Compare this coverage with automated scanning and static analysis tools, and then consider how your time is best spent.&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/doc/org/owasp/esapi/doc-files/OWASPTopTen.jpg&lt;br /&gt;
&lt;br /&gt;
There are two key parts to the ESAPI:&lt;br /&gt;
* A set of interfaces&lt;br /&gt;
* A reference implementation &lt;br /&gt;
&lt;br /&gt;
By using the ESAPI, applications across an organization will be easier to develop, more consistent, and easier to update in a single place. The use of the ESAPI will make it much easier for static analysis tools to verify an application, as the ESAPI calls can be built into the ruleset.&lt;br /&gt;
&lt;br /&gt;
==Download Now==&lt;br /&gt;
&lt;br /&gt;
This release is the first public release and will undoubtably undergo significant revision over the coming months. We are seeking organizations willing to pilot this ESAPI and work with us to make this library better.  Please contact jeff.williams@owasp.org for more information.  If you're interested in application security, please join the [http://lists.owasp.org/mailman/listinfo/owasp-esapi OWASP ESAPI mailing list] and help make ESAPI better!&lt;br /&gt;
&lt;br /&gt;
Versions (archived source files are also available on the SVN under tags)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table width=&amp;quot;100%&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th width=&amp;quot;50%&amp;quot;&amp;gt;JAR Files&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Source Files&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-1.3.jar ESAPI v1.3.0 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.3.0&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-1.2.1.jar ESAPI v1.2.1 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.2.1&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-1.1.1.jar ESAPI v1.1.1 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.1.1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.3.zip ESAPI v1.3.0 Source archive]&lt;br /&gt;
: Source files for ESAPI v1.3.0&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.2.1.zip ESAPI v1.2.1 Source archive]&lt;br /&gt;
: Source files for ESAPI 1.2.1&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.1.1.zip ESAPI v1.1.1 Source archive]&lt;br /&gt;
: Source files for ESAPI 1.1.1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
* Information regarding the ESAPI SVN can be found at [http://code.google.com/p/owasp-esapi-java/ the ESAPI Google Code repository].&lt;br /&gt;
&lt;br /&gt;
* If you have any problems with the ESAPI, please report them to [http://code.google.com/p/owasp-esapi-java/issues/list the issues section].&lt;br /&gt;
&lt;br /&gt;
* The ESAPI [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html Javadocs] are located [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html here]. &lt;br /&gt;
&lt;br /&gt;
* For more information about the ESAPI, please view the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation].&lt;br /&gt;
&lt;br /&gt;
* If you are generating your own Javadocs for the ESAPI project, information regarding generation can be found [https://www.owasp.org/index.php/ESAPI_Javadocs here].&lt;br /&gt;
&lt;br /&gt;
==Changing/Building/Using the ESAPI==&lt;br /&gt;
If you would like to work with the ESAPI source code, or build the project, please [[ESAPI-Building | see here]].&lt;br /&gt;
&lt;br /&gt;
===Using the ESAPI===&lt;br /&gt;
If you want to see what the ESAPI is all about, and want to use the built-in implementations,&lt;br /&gt;
* Download the latest version of the ESAPI JAR from above.&lt;br /&gt;
* Add the ESAPI JAR to your project's build path.&lt;br /&gt;
* At the moment, ESAPI is set up for Java 1.4.2.  If you would like to use the ESAPI reference implementations with a Java 1.6 application, there are some lines of code that need to be uncommented.  Please see [https://www.owasp.org/index.php/ESAPI-Building here] for information on editing the ESAPI.  More information regarding this topic will be added to the Wiki soon.  For now, please contact [http://www.owasp.org/index.php/User:Jeff_Williams Jeff Williams] if you plan to use ESAPI with a Java 1.6 project.&lt;br /&gt;
* As stated above, ESAPI requires Java 1.4.2.  Be sure to set your workspace settings regarding this.&lt;br /&gt;
* Use the [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html ESAPI's Javadocs ] to take advantage of all the built-in functions of the ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Running Demo App===&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is [[ESAPI_Swingset | available here]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
&lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
==Licensing==&lt;br /&gt;
This project is dual-licensed under GPL and BSD. Pick whichever one fits your corporate policy...[JFM]&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Download]]&lt;br /&gt;
[[Category:OWASP Project]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=44445</id>
		<title>Category:OWASP Enterprise Security API</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=44445"/>
				<updated>2008-10-23T15:55:01Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Using the ESAPI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=OWASP Enterprise Security API (ESAPI) Project=&lt;br /&gt;
&lt;br /&gt;
===What is ESAPI?===&lt;br /&gt;
The '''ESAPI''' is a free and open collection of all the security methods that a developer needs to build a secure web application. You can just use the interfaces and build your own implementation using your company's infrastructure. Or, you can use the reference implementation as a starting point. In concept, the API is language independent. However, the first deliverables from the project are a Java API and a Java reference implementation.  Efforts to build ESAPI in .NET and PHP are already underway.&lt;br /&gt;
&lt;br /&gt;
===Why ESAPI?===&lt;br /&gt;
Unfortunately, the available platforms, frameworks, and toolkits (Java EE, Struts, Spring, etc...) simply do not provide enough protection. This leaves developers with responsibility for designing and building security mechanisms.  This reinventing the wheel for every application leads to wasted time and massive security holes.&lt;br /&gt;
&lt;br /&gt;
The cost savings through reduced development time, and the increased security due to using heavily analyzed and carefully designed security methods provide developers with a massive advantage over organizations that are trying to deal with security using existing ad hoc secure coding techniques. This API is designed to automatically take care of many aspects of application security, making these issues invisible to the developers.&lt;br /&gt;
&lt;br /&gt;
===Where did ESAPI come from?===&lt;br /&gt;
The OWASP ESAPI project is led by [[User:Jeff Williams|Jeff Williams]], who serves as the volunteer chair of OWASP and is the CEO of Aspect Security. Jeff is a software developer who has specialized in application security since 1995. The ESAPI is the result of over a decade of code review and penetration testing of critical enterprise applications.  If you'd like to volunteer to help on the project, you can contact him at jeff.williams@owasp.org.&lt;br /&gt;
&lt;br /&gt;
More information about the ESAPI can be found in the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation]&lt;br /&gt;
&lt;br /&gt;
==Architecture==&lt;br /&gt;
&lt;br /&gt;
The ESAPI architecture is very simple, just a collection of classes that encapsulate the key security operations most applications need.  ESAPI is designed to make it easy to retrofit security into existing applications, as well as providing a solid foundation for new development.  New development projects should consider integrating ESAPI into their framework to make even more of the security happen automatically. ESAPI comes with an ESAPI filter that minimizes the changes required to your base application.&lt;br /&gt;
&lt;br /&gt;
The ESAPI covers most of the key security challenges facing application developers. ESAPI provides the capability for developers to create applications that are protected against almost all of the risks described in the OWASP [[Top Ten]]. Compare this coverage with automated scanning and static analysis tools, and then consider how your time is best spent.&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/doc/org/owasp/esapi/doc-files/OWASPTopTen.jpg&lt;br /&gt;
&lt;br /&gt;
There are two key parts to the ESAPI:&lt;br /&gt;
* A set of interfaces&lt;br /&gt;
* A reference implementation &lt;br /&gt;
&lt;br /&gt;
By using the ESAPI, applications across an organization will be easier to develop, more consistent, and easier to update in a single place. The use of the ESAPI will make it much easier for static analysis tools to verify an application, as the ESAPI calls can be built into the ruleset.&lt;br /&gt;
&lt;br /&gt;
==Download Now==&lt;br /&gt;
&lt;br /&gt;
This release is the first public release and will undoubtably undergo significant revision over the coming months. We are seeking organizations willing to pilot this ESAPI and work with us to make this library better.  Please contact jeff.williams@owasp.org for more information.  If you're interested in application security, please join the [http://lists.owasp.org/mailman/listinfo/owasp-esapi OWASP ESAPI mailing list] and help make ESAPI better!&lt;br /&gt;
&lt;br /&gt;
Versions (archived source files are also available on the SVN under tags)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table width=&amp;quot;100%&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th width=&amp;quot;50%&amp;quot;&amp;gt;JAR Files&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Source Files&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-1.3.jar ESAPI v1.3.0 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.3.0&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-1.2.1.jar ESAPI v1.2.1 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.2.1&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-1.1.1.jar ESAPI v1.1.1 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.1.1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.3.zip ESAPI v1.3.0 Source archive]&lt;br /&gt;
: Source files for ESAPI v1.3.0&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.2.1.zip ESAPI v1.2.1 Source archive]&lt;br /&gt;
: Source files for ESAPI 1.2.1&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.1.1.zip ESAPI v1.1.1 Source archive]&lt;br /&gt;
: Source files for ESAPI 1.1.1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
* Information regarding the ESAPI SVN can be found at [http://code.google.com/p/owasp-esapi-java/ the ESAPI Google Code repository].&lt;br /&gt;
&lt;br /&gt;
* If you have any problems with the ESAPI, please report them to [http://code.google.com/p/owasp-esapi-java/issues/list the issues section].&lt;br /&gt;
&lt;br /&gt;
* The ESAPI [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html Javadocs] are located [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html here]. &lt;br /&gt;
&lt;br /&gt;
* For more information about the ESAPI, please view the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation].&lt;br /&gt;
&lt;br /&gt;
* If you are generating your own Javadocs for the ESAPI project, information regarding generation can be found [https://www.owasp.org/index.php/ESAPI_Javadocs here].&lt;br /&gt;
&lt;br /&gt;
==Changing/Building/Using the ESAPI==&lt;br /&gt;
If you would like to work with the ESAPI source code, or build the project, please [[ESAPI-Building | see here]].&lt;br /&gt;
&lt;br /&gt;
===Using the ESAPI===&lt;br /&gt;
If you want to see what the ESAPI is all about, and want to use the built-in implementations,&lt;br /&gt;
* Download the latest version of the ESAPI JAR from above.&lt;br /&gt;
* Add the ESAPI JAR to your project's build path.&lt;br /&gt;
* At the moment, ESAPI is set up for Java 1.4.2.  If you would like to use the ESAPI reference implementations with a Java 1.6 application, there are some lines of code that need to be uncommented.  Please see [https://www.owasp.org/index.php/ESAPI-Building here] for information on editing the ESAPI.  More information regarding this topic will be added to the Wiki soon.  For now, please contact [Jeff Williams] if you plan to use ESAPI with a Java 1.6 project.&lt;br /&gt;
* As stated above, ESAPI requires Java 1.4.2.  Be sure to set your workspace settings regarding this.&lt;br /&gt;
* Use the [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html ESAPI's Javadocs ] to take advantage of all the built-in functions of the ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Running Demo App===&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is [[ESAPI_Swingset | available here]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
&lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
==Licensing==&lt;br /&gt;
This project is dual-licensed under GPL and BSD. Pick whichever one fits your corporate policy...[JFM]&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Download]]&lt;br /&gt;
[[Category:OWASP Project]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=44444</id>
		<title>Category:OWASP Enterprise Security API</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=44444"/>
				<updated>2008-10-23T15:52:50Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Using the ESAPI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=OWASP Enterprise Security API (ESAPI) Project=&lt;br /&gt;
&lt;br /&gt;
===What is ESAPI?===&lt;br /&gt;
The '''ESAPI''' is a free and open collection of all the security methods that a developer needs to build a secure web application. You can just use the interfaces and build your own implementation using your company's infrastructure. Or, you can use the reference implementation as a starting point. In concept, the API is language independent. However, the first deliverables from the project are a Java API and a Java reference implementation.  Efforts to build ESAPI in .NET and PHP are already underway.&lt;br /&gt;
&lt;br /&gt;
===Why ESAPI?===&lt;br /&gt;
Unfortunately, the available platforms, frameworks, and toolkits (Java EE, Struts, Spring, etc...) simply do not provide enough protection. This leaves developers with responsibility for designing and building security mechanisms.  This reinventing the wheel for every application leads to wasted time and massive security holes.&lt;br /&gt;
&lt;br /&gt;
The cost savings through reduced development time, and the increased security due to using heavily analyzed and carefully designed security methods provide developers with a massive advantage over organizations that are trying to deal with security using existing ad hoc secure coding techniques. This API is designed to automatically take care of many aspects of application security, making these issues invisible to the developers.&lt;br /&gt;
&lt;br /&gt;
===Where did ESAPI come from?===&lt;br /&gt;
The OWASP ESAPI project is led by [[User:Jeff Williams|Jeff Williams]], who serves as the volunteer chair of OWASP and is the CEO of Aspect Security. Jeff is a software developer who has specialized in application security since 1995. The ESAPI is the result of over a decade of code review and penetration testing of critical enterprise applications.  If you'd like to volunteer to help on the project, you can contact him at jeff.williams@owasp.org.&lt;br /&gt;
&lt;br /&gt;
More information about the ESAPI can be found in the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation]&lt;br /&gt;
&lt;br /&gt;
==Architecture==&lt;br /&gt;
&lt;br /&gt;
The ESAPI architecture is very simple, just a collection of classes that encapsulate the key security operations most applications need.  ESAPI is designed to make it easy to retrofit security into existing applications, as well as providing a solid foundation for new development.  New development projects should consider integrating ESAPI into their framework to make even more of the security happen automatically. ESAPI comes with an ESAPI filter that minimizes the changes required to your base application.&lt;br /&gt;
&lt;br /&gt;
The ESAPI covers most of the key security challenges facing application developers. ESAPI provides the capability for developers to create applications that are protected against almost all of the risks described in the OWASP [[Top Ten]]. Compare this coverage with automated scanning and static analysis tools, and then consider how your time is best spent.&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/doc/org/owasp/esapi/doc-files/OWASPTopTen.jpg&lt;br /&gt;
&lt;br /&gt;
There are two key parts to the ESAPI:&lt;br /&gt;
* A set of interfaces&lt;br /&gt;
* A reference implementation &lt;br /&gt;
&lt;br /&gt;
By using the ESAPI, applications across an organization will be easier to develop, more consistent, and easier to update in a single place. The use of the ESAPI will make it much easier for static analysis tools to verify an application, as the ESAPI calls can be built into the ruleset.&lt;br /&gt;
&lt;br /&gt;
==Download Now==&lt;br /&gt;
&lt;br /&gt;
This release is the first public release and will undoubtably undergo significant revision over the coming months. We are seeking organizations willing to pilot this ESAPI and work with us to make this library better.  Please contact jeff.williams@owasp.org for more information.  If you're interested in application security, please join the [http://lists.owasp.org/mailman/listinfo/owasp-esapi OWASP ESAPI mailing list] and help make ESAPI better!&lt;br /&gt;
&lt;br /&gt;
Versions (archived source files are also available on the SVN under tags)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table width=&amp;quot;100%&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th width=&amp;quot;50%&amp;quot;&amp;gt;JAR Files&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Source Files&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-1.3.jar ESAPI v1.3.0 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.3.0&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-1.2.1.jar ESAPI v1.2.1 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.2.1&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-1.1.1.jar ESAPI v1.1.1 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.1.1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.3.zip ESAPI v1.3.0 Source archive]&lt;br /&gt;
: Source files for ESAPI v1.3.0&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.2.1.zip ESAPI v1.2.1 Source archive]&lt;br /&gt;
: Source files for ESAPI 1.2.1&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.1.1.zip ESAPI v1.1.1 Source archive]&lt;br /&gt;
: Source files for ESAPI 1.1.1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
* Information regarding the ESAPI SVN can be found at [http://code.google.com/p/owasp-esapi-java/ the ESAPI Google Code repository].&lt;br /&gt;
&lt;br /&gt;
* If you have any problems with the ESAPI, please report them to [http://code.google.com/p/owasp-esapi-java/issues/list the issues section].&lt;br /&gt;
&lt;br /&gt;
* The ESAPI [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html Javadocs] are located [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html here]. &lt;br /&gt;
&lt;br /&gt;
* For more information about the ESAPI, please view the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation].&lt;br /&gt;
&lt;br /&gt;
* If you are generating your own Javadocs for the ESAPI project, information regarding generation can be found [https://www.owasp.org/index.php/ESAPI_Javadocs here].&lt;br /&gt;
&lt;br /&gt;
==Changing/Building/Using the ESAPI==&lt;br /&gt;
If you would like to work with the ESAPI source code, or build the project, please [[ESAPI-Building | see here]].&lt;br /&gt;
&lt;br /&gt;
===Using the ESAPI===&lt;br /&gt;
If you want to see what the ESAPI is all about, and want to use the built-in implementations,&lt;br /&gt;
* Download the latest version of the ESAPI JAR from above.&lt;br /&gt;
* Add the ESAPI JAR to your project's build path.&lt;br /&gt;
* At the moment, ESAPI is set up for Java 1.4.2.  If you would like to use ESAPI with a Java 1.6 application, there are some lines of code that need to be uncommented.  More information regarding this topic will be added to the Wiki soon.  For now, please contact [Jeff Williams] if you plan to use ESAPI with a Java 1.6 project.&lt;br /&gt;
* As stated above, ESAPI requires Java 1.4.2.  Be sure to set your workspace settings regarding this.&lt;br /&gt;
* Use the [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html ESAPI's Javadocs ] to take advantage of all the built-in functions of the ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Running Demo App===&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is [[ESAPI_Swingset | available here]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
&lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
==Licensing==&lt;br /&gt;
This project is dual-licensed under GPL and BSD. Pick whichever one fits your corporate policy...[JFM]&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Download]]&lt;br /&gt;
[[Category:OWASP Project]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=ESAPI_Getting_Started_Guide&amp;diff=44440</id>
		<title>ESAPI Getting Started Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=ESAPI_Getting_Started_Guide&amp;diff=44440"/>
				<updated>2008-10-23T15:15:40Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Step 2: Setting ESAPI configuration properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ESAPI is very easy to use. This tutorial shows how to get a simple application working with the reference implementation of ESAPI. Please remember that the reference implementation is a simple example. The Authenticator uses a text-based password file. This is to make it easy to test ESAPI without installing a database or directory. Enterprises will want to create their own implementation of the API that works with their identity management solution.&lt;br /&gt;
&lt;br /&gt;
==Step 1: Setting up a resources directory==&lt;br /&gt;
&lt;br /&gt;
Create a directory to hold ESAPI resources. This should be a secure location as it will contain a significant amount of security information. For example, you might create a directory called &amp;quot;C:\resources&amp;quot; (Windows) and use the operating system access control mechanisms (NTFS on Windows) to restrict access.&lt;br /&gt;
&lt;br /&gt;
==Step 2: Setting ESAPI configuration properties==&lt;br /&gt;
If it isn't there already, copy the default [http://owasp-esapi-java.googlecode.com/svn/trunk/resources/ESAPI.properties ESAPI.Properties] file into your resources directory. Edit the MasterPassword property and choose a long, difficult-to-guess string, as the security of your application depends on it.&lt;br /&gt;
&lt;br /&gt;
 MasterPassword=xxxxx&lt;br /&gt;
&lt;br /&gt;
Also copy the [http://owasp-esapi-java.googlecode.com/svn/trunk/resources/antisamy-esapi.xml antisamy.xml] file into your resources directory, which defines the [[antisamy]] policy that you'll use in ESAPI.&lt;br /&gt;
&lt;br /&gt;
==Step 3: Configuring user accounts==&lt;br /&gt;
The simplest way to get started is to create an &amp;quot;admin&amp;quot; account to work with. ESAPI has a command line tool that will create your users.txt file. Type the below, for example (all one line):&lt;br /&gt;
&lt;br /&gt;
 java -Dorg.owasp.esapi.resources=&amp;quot;c:\resources&amp;quot;&lt;br /&gt;
 -classpath owasp-esapi-java-1.1.1.jar&lt;br /&gt;
 org.owasp.esapi.Authenticator yourname yourpass admin&lt;br /&gt;
&lt;br /&gt;
==Step 4: Hello, ESAPI!==&lt;br /&gt;
You should be able to use any application container. The instructions below are for Tomcat.&lt;br /&gt;
&lt;br /&gt;
# Do a clean Tomcat 5.5/6.0 install (or use an existing container).&lt;br /&gt;
# Unzip [[Image:Test.zip]] and put the ''test'' directory in the ''webapps'' folder.&lt;br /&gt;
# Run tomcat/bin/startup.bat (or .sh).&lt;br /&gt;
&lt;br /&gt;
* You should enable SSL by uncommenting the SSL Connector in tomcat/conf/server.xml (or /etc/tomcat/server.xml, etc.). Otherwise ESAPI will warn that you're sending a session id over an insecure connection.&lt;br /&gt;
&lt;br /&gt;
==Step 5: Run==&lt;br /&gt;
Just browse to https://localhost:8443/test/test.jsp (or http://localhost:8080/test/test.jsp) and log in with the credentials you set up.&lt;br /&gt;
&lt;br /&gt;
This JSP performs a lot of &amp;quot;global&amp;quot; checks including authentication, validation, and anti-CSRF. Typically you will want to leave these steps to a framework or a filter (see the [[ESAPI Filter]]). This JSP is just to demonstrate some of the features of ESAPI.&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Enterprise Security API]]&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=44439</id>
		<title>Category:OWASP Enterprise Security API</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Category:OWASP_Enterprise_Security_API&amp;diff=44439"/>
				<updated>2008-10-23T14:54:36Z</updated>
		
		<summary type="html">&lt;p&gt;Kevin.Fealey: /* Architecture */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=OWASP Enterprise Security API (ESAPI) Project=&lt;br /&gt;
&lt;br /&gt;
===What is ESAPI?===&lt;br /&gt;
The '''ESAPI''' is a free and open collection of all the security methods that a developer needs to build a secure web application. You can just use the interfaces and build your own implementation using your company's infrastructure. Or, you can use the reference implementation as a starting point. In concept, the API is language independent. However, the first deliverables from the project are a Java API and a Java reference implementation.  Efforts to build ESAPI in .NET and PHP are already underway.&lt;br /&gt;
&lt;br /&gt;
===Why ESAPI?===&lt;br /&gt;
Unfortunately, the available platforms, frameworks, and toolkits (Java EE, Struts, Spring, etc...) simply do not provide enough protection. This leaves developers with responsibility for designing and building security mechanisms.  This reinventing the wheel for every application leads to wasted time and massive security holes.&lt;br /&gt;
&lt;br /&gt;
The cost savings through reduced development time, and the increased security due to using heavily analyzed and carefully designed security methods provide developers with a massive advantage over organizations that are trying to deal with security using existing ad hoc secure coding techniques. This API is designed to automatically take care of many aspects of application security, making these issues invisible to the developers.&lt;br /&gt;
&lt;br /&gt;
===Where did ESAPI come from?===&lt;br /&gt;
The OWASP ESAPI project is led by [[User:Jeff Williams|Jeff Williams]], who serves as the volunteer chair of OWASP and is the CEO of Aspect Security. Jeff is a software developer who has specialized in application security since 1995. The ESAPI is the result of over a decade of code review and penetration testing of critical enterprise applications.  If you'd like to volunteer to help on the project, you can contact him at jeff.williams@owasp.org.&lt;br /&gt;
&lt;br /&gt;
More information about the ESAPI can be found in the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation]&lt;br /&gt;
&lt;br /&gt;
==Architecture==&lt;br /&gt;
&lt;br /&gt;
The ESAPI architecture is very simple, just a collection of classes that encapsulate the key security operations most applications need.  ESAPI is designed to make it easy to retrofit security into existing applications, as well as providing a solid foundation for new development.  New development projects should consider integrating ESAPI into their framework to make even more of the security happen automatically. ESAPI comes with an ESAPI filter that minimizes the changes required to your base application.&lt;br /&gt;
&lt;br /&gt;
The ESAPI covers most of the key security challenges facing application developers. ESAPI provides the capability for developers to create applications that are protected against almost all of the risks described in the OWASP [[Top Ten]]. Compare this coverage with automated scanning and static analysis tools, and then consider how your time is best spent.&lt;br /&gt;
&lt;br /&gt;
http://owasp-esapi-java.googlecode.com/svn/trunk/doc/org/owasp/esapi/doc-files/OWASPTopTen.jpg&lt;br /&gt;
&lt;br /&gt;
There are two key parts to the ESAPI:&lt;br /&gt;
* A set of interfaces&lt;br /&gt;
* A reference implementation &lt;br /&gt;
&lt;br /&gt;
By using the ESAPI, applications across an organization will be easier to develop, more consistent, and easier to update in a single place. The use of the ESAPI will make it much easier for static analysis tools to verify an application, as the ESAPI calls can be built into the ruleset.&lt;br /&gt;
&lt;br /&gt;
==Download Now==&lt;br /&gt;
&lt;br /&gt;
This release is the first public release and will undoubtably undergo significant revision over the coming months. We are seeking organizations willing to pilot this ESAPI and work with us to make this library better.  Please contact jeff.williams@owasp.org for more information.  If you're interested in application security, please join the [http://lists.owasp.org/mailman/listinfo/owasp-esapi OWASP ESAPI mailing list] and help make ESAPI better!&lt;br /&gt;
&lt;br /&gt;
Versions (archived source files are also available on the SVN under tags)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table width=&amp;quot;100%&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th width=&amp;quot;50%&amp;quot;&amp;gt;JAR Files&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Source Files&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-1.3.jar ESAPI v1.3.0 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.3.0&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-1.2.1.jar ESAPI v1.2.1 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.2.1&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-1.1.1.jar ESAPI v1.1.1 Complete JAR file] &lt;br /&gt;
: JAVA 1.4 compatible JAR for ESAPI v1.1.1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.3.zip ESAPI v1.3.0 Source archive]&lt;br /&gt;
: Source files for ESAPI v1.3.0&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.2.1.zip ESAPI v1.2.1 Source archive]&lt;br /&gt;
: Source files for ESAPI 1.2.1&lt;br /&gt;
&lt;br /&gt;
; [http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.1.1.zip ESAPI v1.1.1 Source archive]&lt;br /&gt;
: Source files for ESAPI 1.1.1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
* Information regarding the ESAPI SVN can be found at [http://code.google.com/p/owasp-esapi-java/ the ESAPI Google Code repository].&lt;br /&gt;
&lt;br /&gt;
* If you have any problems with the ESAPI, please report them to [http://code.google.com/p/owasp-esapi-java/issues/list the issues section].&lt;br /&gt;
&lt;br /&gt;
* The ESAPI [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html Javadocs] are located [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html here]. &lt;br /&gt;
&lt;br /&gt;
* For more information about the ESAPI, please view the [http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/OWASP%20ESAPI%20Overview.pptx ESAPI PowerPoint presentation].&lt;br /&gt;
&lt;br /&gt;
* If you are generating your own Javadocs for the ESAPI project, information regarding generation can be found [https://www.owasp.org/index.php/ESAPI_Javadocs here].&lt;br /&gt;
&lt;br /&gt;
==Changing/Building/Using the ESAPI==&lt;br /&gt;
If you would like to work with the ESAPI source code, or build the project, please [[ESAPI-Building | see here]].&lt;br /&gt;
&lt;br /&gt;
===Using the ESAPI===&lt;br /&gt;
If you want to see what the ESAPI is all about, and want to use the built-in implementations,&lt;br /&gt;
* Download the latest version of the ESAPI JAR from above.&lt;br /&gt;
* Add the ESAPI JAR to your project's build path.&lt;br /&gt;
* Use the [http://owasp-esapi-java.googlecode.com/svn/trunk/doc/index.html ESAPI's Javadocs ] to take advantage of all the built-in functions of the ESAPI.&lt;br /&gt;
&lt;br /&gt;
===Running Demo App===&lt;br /&gt;
The ESAPI Demo application has been named ''The ESAPI Swingset''.  More information about Swingset is [[ESAPI_Swingset | available here]].&lt;br /&gt;
&lt;br /&gt;
==Project Sponsors== &lt;br /&gt;
&lt;br /&gt;
The OWASP ESAPI project is sponsored by &lt;br /&gt;
[http://www.aspectsecurity.com https://www.owasp.org/images/d/d1/Aspect_logo.gif]&lt;br /&gt;
&lt;br /&gt;
==Licensing==&lt;br /&gt;
This project is dual-licensed under GPL and BSD. Pick whichever one fits your corporate policy...[JFM]&lt;br /&gt;
&lt;br /&gt;
[[Category:OWASP Download]]&lt;br /&gt;
[[Category:OWASP Project]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Kevin.Fealey</name></author>	</entry>

	</feed>