< prev index next >

test/jdk/sun/security/pkcs11/Signature/TestDSAKeyLength.java

Print this page
rev 59107 : imported patch security

*** 56,80 **** return false; } @Override public void main(Provider provider) throws Exception { - /* - * Use Solaris SPARC 11.2 or later to avoid an intermittent failure - * when running SunPKCS11-Solaris (8044554) - */ - if (provider.getName().equals("SunPKCS11-Solaris") && - props.getProperty("os.name").equals("SunOS") && - props.getProperty("os.arch").equals("sparcv9") && - props.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("DSA", "SUN"); kpg.initialize(2048, new SecureRandom()); KeyPair pair = kpg.generateKeyPair(); boolean status = true; --- 56,65 ----
< prev index next >