test/sun/security/pkcs11/KeyStore/Basic.java
Print this page
7191662: JCE providers should be located via ServiceLoader
*** 365,375 ****
}
private static void module() throws Exception {
// perform Security.addProvider of P11 provider
! ProviderLoader.go(System.getProperty("CUSTOM_P11_CONFIG"));
String KS_PROVIDER = "SunPKCS11-" + System.getProperty("TOKEN");
KeyStoreLoginModule m = new KeyStoreLoginModule();
Subject s = new Subject();
--- 365,375 ----
}
private static void module() throws Exception {
// perform Security.addProvider of P11 provider
! Security.addProvider(getSunPKCS11(System.getProperty("CUSTOM_P11_CONFIG")));
String KS_PROVIDER = "SunPKCS11-" + System.getProperty("TOKEN");
KeyStoreLoginModule m = new KeyStoreLoginModule();
Subject s = new Subject();