Added check for JDK1.5
@@ -85,9 +85,17 @@ public static Test suite() throws Exception
Security.addProvider(new BouncyCastleProvider());
}
if (Security.getProvider(BouncyCastleJsseProvider.PROVIDER_NAME) == null)
+ {
+ String javaVersion = System.getProperty("java.version");
+ if (javaVersion.startsWith("1.5") || javaVersion.startsWith("1.6"))
+ {
+ Security.addProvider(new BouncyCastleJsseProvider(new BouncyCastleProvider()));
+ }
+ else
{
Security.addProvider(new BouncyCastleJsseProvider());
}
+ }
CipherSuitesTestSuite testSuite = new CipherSuitesTestSuite();
