< prev index next >

test/jdk/sun/security/tools/keytool/KeyToolTest.java

Print this page
rev 59383 : [mq]: final

*** 34,47 **** * Testing NSS PKCS11 keystores: * # testing NSS * # make sure the NSS db files are in current directory and writable * echo | java -Dnss -Dnss.lib=/path/to/libsoftokn3.so KeyToolTest * - * Testing Solaris Cryptography Framework PKCS11 keystores: - * # make sure you've already run pktool and set test12 as pin - * echo | java -Dsolaris KeyToolTest - * * ATTENTION: * Exception in thread "main" java.security.ProviderException: * sun.security.pkcs11.wrapper.PKCS11Exception: CKR_KEY_SIZE_RANGE * at sun.security.pkcs11.P11Signature.engineSign(P11Signature.java:420) * ... --- 34,43 ----
*** 104,116 **** static final String NZZ_SRC_P11_ARG = "-srckeystore NONE -srcstoretype PKCS11 " + "-srcproviderName SunPKCS11-nzz " + "-addprovider SunPKCS11 " + "-providerArg p11-nzz.txt "; - static final String SUN_P11_ARG = "-keystore NONE -storetype PKCS11 "; - static final String SUN_SRC_P11_ARG = - "-srckeystore NONE -srcstoretype PKCS11 "; String p11Arg, srcP11Arg; /** Creates a new instance of KeyToolTest */ KeyToolTest() { --- 100,109 ----
*** 1858,1876 **** //FAIL: currently PKCS11-NSS does not support // 2 NSS KeyStores to be loaded at the same time //t.sszzTest(); } - if (System.getProperty("solaris") != null) { - // For Solaris Cryptography Framework - t.srcP11Arg = SUN_SRC_P11_ARG; - t.p11Arg = SUN_P11_ARG; - t.testPKCS11(); - t.testPKCS11ImportKeyStore(); - t.i18nPKCS11Test(); - } - System.out.println("Test pass!!!"); } finally { // restore the reserved locale Locale.setDefault(reservedLocale); } --- 1851,1860 ----
< prev index next >