< prev index next >
test/jdk/sun/security/pkcs11/Signature/ReinitSignature.java
Print this page
rev 59107 : imported patch security
*** 345,369 ****
main(new ReinitSignature());
}
public void main(Provider p) throws Exception {
- /*
- * Use Solaris SPARC 11.2 or later to avoid an intermittent failure
- * when running SunPKCS11-Solaris (8044554)
- */
- if (p.getName().equals("SunPKCS11-Solaris") &&
- System.getProperty("os.name").equals("SunOS") &&
- System.getProperty("os.arch").equals("sparcv9") &&
- System.getProperty("os.version").compareTo("5.11") <= 0 &&
- getDistro().compareTo("11.2") < 0) {
-
- System.out.println("SunPKCS11-Solaris provider requires " +
- "Solaris SPARC 11.2 or later, skipping");
- return;
- }
-
KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA", p);
kpg.initialize(512);
KeyPair kp = kpg.generateKeyPair();
PrivateKey privateKey = kp.getPrivate();
PublicKey publicKey = kp.getPublic();
--- 345,354 ----
< prev index next >