Skip to content

Commit a3faeb6

Browse files
committed
Added Static Class Instantiation Protection
Fixed Spelling Typos Signed-off-by: Joshua Gager <[email protected]>
1 parent 46fd54f commit a3faeb6

File tree

126 files changed

+796
-1879
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+796
-1879
lines changed

CLASSDESCRIPTION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The SecurityTools class contains methods surrounding hashing and encryption. Thi
3030
- readFromFile(String fileName) - Reads a hash or RSA key from a text file.
3131
- CreateSalt(int size) - Creates a RNG salt for use in password hashing using the supplied length.
3232
- CreateHash(String passwordToHash, String salt) - Creates a SHA512 password hash with the supplied password and salt.
33-
- CheckHashesMatch(String enteredPassword, String databasePassword, String databaseSalt) - Checks if the supplied password matches the supplied database password and salt. This can be used to verifiy passwords for a login system.
33+
- CheckHashesMatch(String enteredPassword, String databasePassword, String databaseSalt) - Checks if the supplied password matches the supplied database password and salt. This can be used to verify passwords for a login system.
3434
- generateRSAKeyPair() - Generates a RSA key pair for use in encryption.
3535
- generateKeyPair(boolean saveToFiles, String filename) - Generates a RSA key pair for use in encryption and saves to file.
3636
- encrypt(PublicKey key, String plaintext) - Encrypts a string using a RSA public key. Returns byte array.

docs/allclasses-frame.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Sat Mar 18 03:35:31 EDT 2017 -->
5+
<!-- Generated by javadoc (1.8.0_121) on Tue Mar 28 23:07:00 EDT 2017 -->
66
<title>All Classes</title>
7-
<meta name="date" content="2017-03-18">
7+
<meta name="date" content="2017-03-28">
88
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
99
<script type="text/javascript" src="script.js"></script>
1010
</head>

docs/allclasses-noframe.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Sat Mar 18 03:35:31 EDT 2017 -->
5+
<!-- Generated by javadoc (1.8.0_121) on Tue Mar 28 23:07:00 EDT 2017 -->
66
<title>All Classes</title>
7-
<meta name="date" content="2017-03-18">
7+
<meta name="date" content="2017-03-28">
88
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
99
<script type="text/javascript" src="script.js"></script>
1010
</head>

docs/com/jgcomptech/tools/CommandInfo.Output.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Sat Mar 18 03:35:30 EDT 2017 -->
5+
<!-- Generated by javadoc (1.8.0_121) on Tue Mar 28 23:06:58 EDT 2017 -->
66
<title>CommandInfo.Output</title>
7-
<meta name="date" content="2017-03-18">
7+
<meta name="date" content="2017-03-28">
88
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
99
<script type="text/javascript" src="../../../script.js"></script>
1010
</head>

docs/com/jgcomptech/tools/CommandInfo.html

Lines changed: 12 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Sat Mar 18 03:35:30 EDT 2017 -->
5+
<!-- Generated by javadoc (1.8.0_121) on Tue Mar 28 23:06:58 EDT 2017 -->
66
<title>CommandInfo</title>
7-
<meta name="date" content="2017-03-18">
7+
<meta name="date" content="2017-03-28">
88
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
99
<script type="text/javascript" src="../../../script.js"></script>
1010
</head>
@@ -75,13 +75,13 @@
7575
<li>Summary:&nbsp;</li>
7676
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
7777
<li>Field&nbsp;|&nbsp;</li>
78-
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
78+
<li>Constr&nbsp;|&nbsp;</li>
7979
<li><a href="#method.summary">Method</a></li>
8080
</ul>
8181
<ul class="subNavList">
8282
<li>Detail:&nbsp;</li>
8383
<li>Field&nbsp;|&nbsp;</li>
84-
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
84+
<li>Constr&nbsp;|&nbsp;</li>
8585
<li><a href="#method.detail">Method</a></li>
8686
</ul>
8787
</div>
@@ -138,23 +138,6 @@ <h3>Nested Class Summary</h3>
138138
</table>
139139
</li>
140140
</ul>
141-
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
142-
<ul class="blockList">
143-
<li class="blockList"><a name="constructor.summary">
144-
<!-- -->
145-
</a>
146-
<h3>Constructor Summary</h3>
147-
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
148-
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
149-
<tr>
150-
<th class="colOne" scope="col">Constructor and Description</th>
151-
</tr>
152-
<tr class="altColor">
153-
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/jgcomptech/tools/CommandInfo.html#CommandInfo--">CommandInfo</a></span>()</code>&nbsp;</td>
154-
</tr>
155-
</table>
156-
</li>
157-
</ul>
158141
<!-- ========== METHOD SUMMARY =========== -->
159142
<ul class="blockList">
160143
<li class="blockList"><a name="method.summary">
@@ -208,23 +191,6 @@ <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
208191
<div class="details">
209192
<ul class="blockList">
210193
<li class="blockList">
211-
<!-- ========= CONSTRUCTOR DETAIL ======== -->
212-
<ul class="blockList">
213-
<li class="blockList"><a name="constructor.detail">
214-
<!-- -->
215-
</a>
216-
<h3>Constructor Detail</h3>
217-
<a name="CommandInfo--">
218-
<!-- -->
219-
</a>
220-
<ul class="blockListLast">
221-
<li class="blockList">
222-
<h4>CommandInfo</h4>
223-
<pre>public&nbsp;CommandInfo()</pre>
224-
</li>
225-
</ul>
226-
</li>
227-
</ul>
228194
<!-- ============ METHOD DETAIL ========== -->
229195
<ul class="blockList">
230196
<li class="blockList"><a name="method.detail">
@@ -277,12 +243,12 @@ <h4>Run</h4>
277243
<ul class="blockListLast">
278244
<li class="blockList">
279245
<h4>Run</h4>
280-
<pre>@Nullable
246+
<pre>@NotNull
281247
public static&nbsp;<a href="../../../com/jgcomptech/tools/CommandInfo.Output.html" title="class in com.jgcomptech.tools">CommandInfo.Output</a>&nbsp;Run(java.lang.String&nbsp;command,
282-
java.lang.String&nbsp;args,
283-
boolean&nbsp;elevate,
284-
boolean&nbsp;hideWindow,
285-
boolean&nbsp;keepWindowOpen)</pre>
248+
java.lang.String&nbsp;args,
249+
boolean&nbsp;elevate,
250+
boolean&nbsp;hideWindow,
251+
boolean&nbsp;keepWindowOpen)</pre>
286252
<div class="block">Runs command according to parameters, will only open cmd window if OS is Windows <p>
287253
If OS is not Windows, all boolean parameters are ignored and results will be saved to Output object</div>
288254
<dl>
@@ -295,7 +261,7 @@ <h4>Run</h4>
295261
<dd><code>keepWindowOpen</code> - If true, pauses cmd window and forces it to stay open after command is completed <p>
296262
If false and "elevate" is true, cmd window will close after command is completed
297263
<p>
298-
This parameter is ignored if "hidewindow" is true, this prevents cmd window from staying
264+
This parameter is ignored if "hideWindow" is true, this prevents cmd window from staying
299265
open when hidden and unnecessarily using RAM</dd>
300266
<dt><span class="returnLabel">Returns:</span></dt>
301267
<dd>Output object</dd>
@@ -356,13 +322,13 @@ <h4>Run</h4>
356322
<li>Summary:&nbsp;</li>
357323
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
358324
<li>Field&nbsp;|&nbsp;</li>
359-
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
325+
<li>Constr&nbsp;|&nbsp;</li>
360326
<li><a href="#method.summary">Method</a></li>
361327
</ul>
362328
<ul class="subNavList">
363329
<li>Detail:&nbsp;</li>
364330
<li>Field&nbsp;|&nbsp;</li>
365-
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
331+
<li>Constr&nbsp;|&nbsp;</li>
366332
<li><a href="#method.detail">Method</a></li>
367333
</ul>
368334
</div>

docs/com/jgcomptech/tools/ComputerInfo.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Sat Mar 18 03:35:30 EDT 2017 -->
5+
<!-- Generated by javadoc (1.8.0_121) on Tue Mar 28 23:06:58 EDT 2017 -->
66
<title>ComputerInfo</title>
7-
<meta name="date" content="2017-03-18">
7+
<meta name="date" content="2017-03-28">
88
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
99
<script type="text/javascript" src="../../../script.js"></script>
1010
</head>

docs/com/jgcomptech/tools/HWInfo.BIOS.html

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Sat Mar 18 03:35:30 EDT 2017 -->
5+
<!-- Generated by javadoc (1.8.0_121) on Tue Mar 28 23:06:58 EDT 2017 -->
66
<title>HWInfo.BIOS</title>
7-
<meta name="date" content="2017-03-18">
7+
<meta name="date" content="2017-03-28">
88
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
99
<script type="text/javascript" src="../../../script.js"></script>
1010
</head>
@@ -75,13 +75,13 @@
7575
<li>Summary:&nbsp;</li>
7676
<li>Nested&nbsp;|&nbsp;</li>
7777
<li>Field&nbsp;|&nbsp;</li>
78-
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
78+
<li>Constr&nbsp;|&nbsp;</li>
7979
<li><a href="#method.summary">Method</a></li>
8080
</ul>
8181
<ul class="subNavList">
8282
<li>Detail:&nbsp;</li>
8383
<li>Field&nbsp;|&nbsp;</li>
84-
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
84+
<li>Constr&nbsp;|&nbsp;</li>
8585
<li><a href="#method.detail">Method</a></li>
8686
</ul>
8787
</div>
@@ -121,23 +121,6 @@ <h2 title="Class HWInfo.BIOS" class="title">Class HWInfo.BIOS</h2>
121121
<div class="summary">
122122
<ul class="blockList">
123123
<li class="blockList">
124-
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
125-
<ul class="blockList">
126-
<li class="blockList"><a name="constructor.summary">
127-
<!-- -->
128-
</a>
129-
<h3>Constructor Summary</h3>
130-
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
131-
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
132-
<tr>
133-
<th class="colOne" scope="col">Constructor and Description</th>
134-
</tr>
135-
<tr class="altColor">
136-
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/jgcomptech/tools/HWInfo.BIOS.html#BIOS--">BIOS</a></span>()</code>&nbsp;</td>
137-
</tr>
138-
</table>
139-
</li>
140-
</ul>
141124
<!-- ========== METHOD SUMMARY =========== -->
142125
<ul class="blockList">
143126
<li class="blockList"><a name="method.summary">
@@ -184,23 +167,6 @@ <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
184167
<div class="details">
185168
<ul class="blockList">
186169
<li class="blockList">
187-
<!-- ========= CONSTRUCTOR DETAIL ======== -->
188-
<ul class="blockList">
189-
<li class="blockList"><a name="constructor.detail">
190-
<!-- -->
191-
</a>
192-
<h3>Constructor Detail</h3>
193-
<a name="BIOS--">
194-
<!-- -->
195-
</a>
196-
<ul class="blockListLast">
197-
<li class="blockList">
198-
<h4>BIOS</h4>
199-
<pre>public&nbsp;BIOS()</pre>
200-
</li>
201-
</ul>
202-
</li>
203-
</ul>
204170
<!-- ============ METHOD DETAIL ========== -->
205171
<ul class="blockList">
206172
<li class="blockList"><a name="method.detail">
@@ -306,13 +272,13 @@ <h4>getVendor</h4>
306272
<li>Summary:&nbsp;</li>
307273
<li>Nested&nbsp;|&nbsp;</li>
308274
<li>Field&nbsp;|&nbsp;</li>
309-
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
275+
<li>Constr&nbsp;|&nbsp;</li>
310276
<li><a href="#method.summary">Method</a></li>
311277
</ul>
312278
<ul class="subNavList">
313279
<li>Detail:&nbsp;</li>
314280
<li>Field&nbsp;|&nbsp;</li>
315-
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
281+
<li>Constr&nbsp;|&nbsp;</li>
316282
<li><a href="#method.detail">Method</a></li>
317283
</ul>
318284
</div>

docs/com/jgcomptech/tools/HWInfo.BIOSObject.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Sat Mar 18 03:35:30 EDT 2017 -->
5+
<!-- Generated by javadoc (1.8.0_121) on Tue Mar 28 23:06:58 EDT 2017 -->
66
<title>HWInfo.BIOSObject</title>
7-
<meta name="date" content="2017-03-18">
7+
<meta name="date" content="2017-03-28">
88
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
99
<script type="text/javascript" src="../../../script.js"></script>
1010
</head>

docs/com/jgcomptech/tools/HWInfo.DriveObject.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Sat Mar 18 03:35:30 EDT 2017 -->
5+
<!-- Generated by javadoc (1.8.0_121) on Tue Mar 28 23:06:58 EDT 2017 -->
66
<title>HWInfo.DriveObject</title>
7-
<meta name="date" content="2017-03-18">
7+
<meta name="date" content="2017-03-28">
88
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
99
<script type="text/javascript" src="../../../script.js"></script>
1010
</head>

docs/com/jgcomptech/tools/HWInfo.HWObject.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Sat Mar 18 03:35:30 EDT 2017 -->
5+
<!-- Generated by javadoc (1.8.0_121) on Tue Mar 28 23:06:58 EDT 2017 -->
66
<title>HWInfo.HWObject</title>
7-
<meta name="date" content="2017-03-18">
7+
<meta name="date" content="2017-03-28">
88
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
99
<script type="text/javascript" src="../../../script.js"></script>
1010
</head>

0 commit comments

Comments
 (0)