io.rubrica.keystore.SafenetAppleKeyStoreProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rubrica Show documentation
Show all versions of rubrica Show documentation
Una librería para firma digital
/*
* Copyright (C) 2009 Libreria para Firma Digital development team.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*/
package io.rubrica.keystore;
import java.io.File;
public class SafenetAppleKeyStoreProvider extends PKCS11KeyStoreProvider {
private static final String CONFIG;
private static final String DRIVER_FILE = "/usr/local/lib/libeTPkcs11.dylib";
static {
StringBuilder config = new StringBuilder();
config.append("name=Safenet\n");
config.append("library=" + DRIVER_FILE);
CONFIG = config.toString();
}
@Override
public String getConfig() {
return CONFIG;
}
@Override
public boolean existeDriver() {
File driver = new File(DRIVER_FILE);
return driver.exists();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy