Commit 1b5fe14c authored by acq1305's avatar acq1305
Browse files

documentacion

parent c26df814
......@@ -24,7 +24,7 @@ public class Control {
private String appPath = System.getProperties().getProperty("user.dir");
private File fichero = new File(appPath + "\\miApp.tmp");
private int segundos = 20;
private int segundos = 10;
/**
* Constructor de clase
......
......@@ -28,16 +28,21 @@ public class Run {
* @throws PKCS11Exception
*/
public static void main(String[] args) throws IOException, PKCS11Exception {
try {
GestorSlot gestorSlot;
gestorSlot = GestorSlot.getInstance();
gestorSlot.adicionarProveedor(proveedores(new File("config/token.cfg").getAbsolutePath()));
ServidorRest rest = new ServidorRest();
rest.iniciar();
} catch (Exception e) {
System.out.println(e.getMessage());
System.out.println("error al iniciar el servidor REST con el Token (Instale el driver o revise la url al driver del archivo token.cfg)");
if (new Control().comprobar()) {
try {
GestorSlot gestorSlot;
gestorSlot = GestorSlot.getInstance();
gestorSlot.adicionarProveedor(proveedores(new File("config/token.cfg").getAbsolutePath()));
ServidorRest rest = new ServidorRest();
rest.iniciar();
} catch (Exception e) {
System.out.println(e.getMessage());
System.out.println("error al iniciar el servidor REST con el Token (Instale el driver o revise la url al driver del archivo token.cfg)");
}
} else {
System.exit(0);
}
}
/**
......
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