Commit 57b238cf authored by Alberto Inch's avatar Alberto Inch

Corrección cierre de sesión.

parent bcd54ae5
......@@ -291,6 +291,13 @@ public class PkcsN11Manager extends KeyStoreManager{
public void logout() throws Exception {
if(sunPKCS11==null)
return;
try {
sunPKCS11.logout();
} catch (RuntimeException e) {
System.out.println(e.getMessage());
}
try {
// Obtenemos el Wrapper del sunPKCS11
Field f = SunPKCS11.class.getDeclaredField("p11");
......@@ -300,6 +307,7 @@ public class PkcsN11Manager extends KeyStoreManager{
} catch (Exception e) {
e.printStackTrace();
}
sunPKCS11.clear();
sunPKCS11.setCallbackHandler(null);
Security.removeProvider(sunPKCS11.getName());
......
......@@ -17,7 +17,7 @@ import javax.swing.JLabel;
public class Config {
private static Config config;
private final static String CONFIG_FILE_NAME = "fido.properties";
public static String FIDO_VERSION="Jacobitus Fido v3.1.0";
public static String FIDO_VERSION="Jacobitus Fido v3.1.1";
public static String PROPERTIE_APP_NAME = "fido_app.properties";
public static String PROFILE_DIR_NAME = "FidoProfiles";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment