documentation version 1.4.5

This commit is contained in:
Jeremy Long
2017-01-22 17:22:46 -05:00
parent a1b5e3f7b0
commit 615f6e3750
1583 changed files with 55974 additions and 52631 deletions

View File

@@ -44,6 +44,6 @@
<a class="jxr_linenumber" name="L36" href="#L36">36</a> }
</pre>
<hr/>
<div id="footer">Copyright &#169; 2012&#x2013;2016 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
<div id="footer">Copyright &#169; 2012&#x2013;2017 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
</body>
</html>

View File

@@ -52,7 +52,7 @@
<a class="jxr_linenumber" name="L44" href="#L44">44</a> @Test
<a class="jxr_linenumber" name="L45" href="#L45">45</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetChecksum() <strong class="jxr_keyword">throws</strong> Exception {
<a class="jxr_linenumber" name="L46" href="#L46">46</a> String algorithm = <span class="jxr_string">"MD5"</span>;
<a class="jxr_linenumber" name="L47" href="#L47">47</a> File file = <strong class="jxr_keyword">new</strong> File(<strong class="jxr_keyword">this</strong>.getClass().getClassLoader().getResource(<span class="jxr_string">"checkSumTest.file"</span>).getPath());
<a class="jxr_linenumber" name="L47" href="#L47">47</a> File file = <strong class="jxr_keyword">new</strong> File(<strong class="jxr_keyword">this</strong>.getClass().getClassLoader().getResource(<span class="jxr_string">"checkSumTest.file"</span>).toURI().getPath());
<a class="jxr_linenumber" name="L48" href="#L48">48</a> byte[] expResult = {-16, -111, 92, 95, 70, -72, -49, -94, -125, -27, -83, 103, -96, -101, 55, -109};
<a class="jxr_linenumber" name="L49" href="#L49">49</a> byte[] result = Checksum.getChecksum(algorithm, file);
<a class="jxr_linenumber" name="L50" href="#L50">50</a> <strong class="jxr_keyword">boolean</strong> arraysAreEqual = <strong class="jxr_keyword">true</strong>;
@@ -102,7 +102,7 @@
<a class="jxr_linenumber" name="L94" href="#L94">94</a> <em class="jxr_javadoccomment"> */</em>
<a class="jxr_linenumber" name="L95" href="#L95">95</a> @Test
<a class="jxr_linenumber" name="L96" href="#L96">96</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetMD5Checksum() <strong class="jxr_keyword">throws</strong> Exception {
<a class="jxr_linenumber" name="L97" href="#L97">97</a> File file = <strong class="jxr_keyword">new</strong> File(<strong class="jxr_keyword">this</strong>.getClass().getClassLoader().getResource(<span class="jxr_string">"checkSumTest.file"</span>).getPath());
<a class="jxr_linenumber" name="L97" href="#L97">97</a> File file = <strong class="jxr_keyword">new</strong> File(<strong class="jxr_keyword">this</strong>.getClass().getClassLoader().getResource(<span class="jxr_string">"checkSumTest.file"</span>).toURI().getPath());
<a class="jxr_linenumber" name="L98" href="#L98">98</a> <em class="jxr_comment">//String expResult = "F0915C5F46B8CFA283E5AD67A09B3793";</em>
<a class="jxr_linenumber" name="L99" href="#L99">99</a> String expResult = <span class="jxr_string">"f0915c5f46b8cfa283e5ad67a09b3793"</span>;
<a class="jxr_linenumber" name="L100" href="#L100">100</a> String result = Checksum.getMD5Checksum(file);
@@ -116,7 +116,7 @@
<a class="jxr_linenumber" name="L108" href="#L108">108</a> <em class="jxr_javadoccomment"> */</em>
<a class="jxr_linenumber" name="L109" href="#L109">109</a> @Test
<a class="jxr_linenumber" name="L110" href="#L110">110</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetSHA1Checksum() <strong class="jxr_keyword">throws</strong> Exception {
<a class="jxr_linenumber" name="L111" href="#L111">111</a> File file = <strong class="jxr_keyword">new</strong> File(<strong class="jxr_keyword">this</strong>.getClass().getClassLoader().getResource(<span class="jxr_string">"checkSumTest.file"</span>).getPath());
<a class="jxr_linenumber" name="L111" href="#L111">111</a> File file = <strong class="jxr_keyword">new</strong> File(<strong class="jxr_keyword">this</strong>.getClass().getClassLoader().getResource(<span class="jxr_string">"checkSumTest.file"</span>).toURI().getPath());
<a class="jxr_linenumber" name="L112" href="#L112">112</a> <em class="jxr_comment">//String expResult = "B8A9FF28B21BCB1D0B50E24A5243D8B51766851A";</em>
<a class="jxr_linenumber" name="L113" href="#L113">113</a> String expResult = <span class="jxr_string">"b8a9ff28b21bcb1d0b50e24a5243d8b51766851a"</span>;
<a class="jxr_linenumber" name="L114" href="#L114">114</a> String result = Checksum.getSHA1Checksum(file);
@@ -137,6 +137,6 @@
<a class="jxr_linenumber" name="L129" href="#L129">129</a> }
</pre>
<hr/>
<div id="footer">Copyright &#169; 2012&#x2013;2016 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
<div id="footer">Copyright &#169; 2012&#x2013;2017 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
</body>
</html>

View File

@@ -59,6 +59,6 @@
<a class="jxr_linenumber" name="L51" href="#L51">51</a> }
</pre>
<hr/>
<div id="footer">Copyright &#169; 2012&#x2013;2016 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
<div id="footer">Copyright &#169; 2012&#x2013;2017 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
</body>
</html>

View File

@@ -221,6 +221,6 @@
<a class="jxr_linenumber" name="L213" href="#L213">213</a> }
</pre>
<hr/>
<div id="footer">Copyright &#169; 2012&#x2013;2016 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
<div id="footer">Copyright &#169; 2012&#x2013;2017 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
</body>
</html>

View File

@@ -70,6 +70,6 @@
<a class="jxr_linenumber" name="L62" href="#L62">62</a> }
</pre>
<hr/>
<div id="footer">Copyright &#169; 2012&#x2013;2016 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
<div id="footer">Copyright &#169; 2012&#x2013;2017 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
</body>
</html>

View File

@@ -62,6 +62,6 @@
<a class="jxr_linenumber" name="L54" href="#L54">54</a> }
</pre>
<hr/>
<div id="footer">Copyright &#169; 2012&#x2013;2016 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
<div id="footer">Copyright &#169; 2012&#x2013;2017 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
</body>
</html>

View File

@@ -26,27 +26,24 @@
<a class="jxr_linenumber" name="L18" href="#L18">18</a> <strong class="jxr_keyword">package</strong> org.owasp.dependencycheck.utils;
<a class="jxr_linenumber" name="L19" href="#L19">19</a>
<a class="jxr_linenumber" name="L20" href="#L20">20</a> <strong class="jxr_keyword">import</strong> java.io.File;
<a class="jxr_linenumber" name="L21" href="#L21">21</a> <strong class="jxr_keyword">import</strong> java.net.URL;
<a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertTrue;
<a class="jxr_linenumber" name="L23" href="#L23">23</a> <strong class="jxr_keyword">import</strong> org.junit.Test;
<a class="jxr_linenumber" name="L24" href="#L24">24</a> <strong class="jxr_keyword">import</strong> org.owasp.dependencycheck.utils.Downloader;
<a class="jxr_linenumber" name="L25" href="#L25">25</a>
<a class="jxr_linenumber" name="L26" href="#L26">26</a> <em class="jxr_javadoccomment">/**</em>
<a class="jxr_linenumber" name="L27" href="#L27">27</a> <em class="jxr_javadoccomment"> *</em>
<a class="jxr_linenumber" name="L28" href="#L28">28</a> <em class="jxr_javadoccomment"> * @author Jeremy Long</em>
<a class="jxr_linenumber" name="L29" href="#L29">29</a> <em class="jxr_javadoccomment"> */</em>
<a class="jxr_linenumber" name="L30" href="#L30">30</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/owasp/dependencycheck/utils/DownloaderTest.html">DownloaderTest</a> {
<a class="jxr_linenumber" name="L31" href="#L31">31</a>
<a class="jxr_linenumber" name="L32" href="#L32">32</a> @Test
<a class="jxr_linenumber" name="L33" href="#L33">33</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetLastModified_file() <strong class="jxr_keyword">throws</strong> Exception {
<a class="jxr_linenumber" name="L34" href="#L34">34</a> File f = <strong class="jxr_keyword">new</strong> File(<span class="jxr_string">"target/test-classes/dependencycheck.properties"</span>);
<a class="jxr_linenumber" name="L35" href="#L35">35</a> URL url = <strong class="jxr_keyword">new</strong> URL(<span class="jxr_string">"file:///"</span> + f.getCanonicalPath());
<a class="jxr_linenumber" name="L36" href="#L36">36</a> <strong class="jxr_keyword">long</strong> timestamp = Downloader.getLastModified(url);
<a class="jxr_linenumber" name="L37" href="#L37">37</a> assertTrue(<span class="jxr_string">"timestamp equal to zero?"</span>, timestamp &gt; 0);
<a class="jxr_linenumber" name="L38" href="#L38">38</a> }
<a class="jxr_linenumber" name="L39" href="#L39">39</a> }
<a class="jxr_linenumber" name="L21" href="#L21">21</a> <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertTrue;
<a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong class="jxr_keyword">import</strong> org.junit.Test;
<a class="jxr_linenumber" name="L23" href="#L23">23</a> <strong class="jxr_keyword">import</strong> org.owasp.dependencycheck.utils.Downloader;
<a class="jxr_linenumber" name="L24" href="#L24">24</a>
<a class="jxr_linenumber" name="L25" href="#L25">25</a> <em class="jxr_javadoccomment">/**</em>
<a class="jxr_linenumber" name="L26" href="#L26">26</a> <em class="jxr_javadoccomment"> *</em>
<a class="jxr_linenumber" name="L27" href="#L27">27</a> <em class="jxr_javadoccomment"> * @author Jeremy Long</em>
<a class="jxr_linenumber" name="L28" href="#L28">28</a> <em class="jxr_javadoccomment"> */</em>
<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/owasp/dependencycheck/utils/DownloaderTest.html">DownloaderTest</a> {
<a class="jxr_linenumber" name="L30" href="#L30">30</a>
<a class="jxr_linenumber" name="L31" href="#L31">31</a> @Test
<a class="jxr_linenumber" name="L32" href="#L32">32</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetLastModified_file() <strong class="jxr_keyword">throws</strong> Exception {
<a class="jxr_linenumber" name="L33" href="#L33">33</a> <strong class="jxr_keyword">long</strong> timestamp = Downloader.getLastModified(<strong class="jxr_keyword">new</strong> File(<span class="jxr_string">"target/test-classes/dependencycheck.properties"</span>).toURI().toURL());
<a class="jxr_linenumber" name="L34" href="#L34">34</a> assertTrue(<span class="jxr_string">"timestamp equal to zero?"</span>, timestamp &gt; 0);
<a class="jxr_linenumber" name="L35" href="#L35">35</a> }
<a class="jxr_linenumber" name="L36" href="#L36">36</a> }
</pre>
<hr/>
<div id="footer">Copyright &#169; 2012&#x2013;2016 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
<div id="footer">Copyright &#169; 2012&#x2013;2017 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
</body>
</html>

View File

@@ -104,6 +104,6 @@
<a class="jxr_linenumber" name="L96" href="#L96">96</a> }
</pre>
<hr/>
<div id="footer">Copyright &#169; 2012&#x2013;2016 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
<div id="footer">Copyright &#169; 2012&#x2013;2017 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
</body>
</html>

View File

@@ -69,6 +69,6 @@
<a class="jxr_linenumber" name="L61" href="#L61">61</a> }
</pre>
<hr/>
<div id="footer">Copyright &#169; 2012&#x2013;2016 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
<div id="footer">Copyright &#169; 2012&#x2013;2017 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
</body>
</html>

View File

@@ -81,6 +81,6 @@
<a class="jxr_linenumber" name="L73" href="#L73">73</a> }
</pre>
<hr/>
<div id="footer">Copyright &#169; 2012&#x2013;2016 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
<div id="footer">Copyright &#169; 2012&#x2013;2017 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
</body>
</html>

View File

@@ -231,6 +231,6 @@
<a class="jxr_linenumber" name="L223" href="#L223">223</a> }
</pre>
<hr/>
<div id="footer">Copyright &#169; 2012&#x2013;2016 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
<div id="footer">Copyright &#169; 2012&#x2013;2017 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
</body>
</html>

View File

@@ -37,6 +37,6 @@
<a class="jxr_linenumber" name="L29" href="#L29">29</a> }
</pre>
<hr/>
<div id="footer">Copyright &#169; 2012&#x2013;2016 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
<div id="footer">Copyright &#169; 2012&#x2013;2017 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.</div>
</body>
</html>

View File

@@ -3,7 +3,7 @@
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Dependency-Check 1.4.4 Reference Package org.owasp.dependencycheck.utils</title>
<title>Dependency-Check 1.4.5 Reference Package org.owasp.dependencycheck.utils</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
</head>
<body>

View File

@@ -3,7 +3,7 @@
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Dependency-Check 1.4.4 Reference Package org.owasp.dependencycheck.utils</title>
<title>Dependency-Check 1.4.5 Reference Package org.owasp.dependencycheck.utils</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
</head>
<body>
@@ -118,7 +118,7 @@
</div>
<hr />
<div id="footer">
Copyright &#169; 2012&#x2013;2016 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.
Copyright &#169; 2012&#x2013;2017 <a href="http://www.owasp.org">OWASP</a>. All rights reserved.
</div>
</body>
</html>