} else {
isIndex = true;
nr = "1";
}
final P11Slot slot = P11Slot.getInstance(nr, sharedLibraryPath, isIndex, null, this, 0);// no CA set ID to 0 to indicate just one user
final AuthProvider provider = (AuthProvider)slot.getProvider();
final String providerName = provider.getName();
final PasswordHandler handler = new PasswordHandler(password);
provider.login(null, handler);
handler.clean();
System.setProperty("javax.net.ssl.keyStoreType", "pkcs11");
System.setProperty("javax.net.ssl.keyStoreProvider", providerName);
System.setProperty("javax.net.ssl.keyStore", "NONE");
if ( trustStorePath==null ) {