How to secure Class.forName("SimpleClass")?
<p>I ran security scan on our application and one of the security issues that came up with is "Download of Code Without Integrity Check". This risk points of the line at <code>Class.forName("SimpleClass");</code></p>

<p>how do I secure the above line of code?
How do I make sure the parameter for <code>forName("")</code> is not a malicious class that I would be loading.</p>

<p>Edit: Security Scan used is Checkmarx.</p>