< prev index next >
test/jdk/java/security/KeyPairGenerator/SolarisShortDSA.java
Print this page
rev 59107 : imported patch security
*** 41,59 ****
KeyPair kp = kpg.generateKeyPair();
DSAPrivateKey dpk = (DSAPrivateKey)kp.getPrivate();
int len = dpk.getX().bitLength();
if (len <= 152) {
if (!use(kp)) {
- String os = System.getProperty("os.name");
- // Solaris bug, update the following line once it's fixed
- if (os.equals("SunOS")) {
- throw new IllegalStateException(
- "Don't panic. This is a Solaris bug");
- } else {
throw new RuntimeException("Real test failure");
}
- }
break;
}
}
}
--- 41,52 ----
< prev index next >