When loading a signed jar file that is on the classpath, such as the bouncy castle signed JCE jar file, it has been observed that the value of restrictedJarVerificationProviders and jarVerificationProviders are set to null. This causes a NullPointerException during the loading process.
This update moves the static declarations of both
restrictedJarVerificationProviders and jarVerificationProviders to be prior to the method call RestrictedSecurity.checkHashValues() since this method call needs both of these fields to be initialized to work correctly.
When loading a signed jar file that is on the classpath, such as the bouncy castle signed JCE jar file, it has been observed that the value of
restrictedJarVerificationProviders
andjarVerificationProviders
are set tonull
. This causes a NullPointerException during the loading process.This update moves the static declarations of both
restrictedJarVerificationProviders
andjarVerificationProviders
to be prior to the method callRestrictedSecurity.checkHashValues()
since this method call needs both of these fields to be initialized to work correctly.Signed-off-by: Jason Katonica katonica@us.ibm.com