I tried to connect to the luna SA, with the SDK installed and the luna and luna API. I have access to the moon, and I could open session in putty console. I used the login that comes in the example, but sends me an error.
code:
public LunaTokenManager tokenManager = null;
tokenManager = LunaTokenManager.getInstance();
try {
tokenManager.Login(password);
}
catch (ProviderException e) {
e.getMessage();
}
to debbug stop in LunaTokenManager.getInstance();
error: Exception in thread "main" com.chrysalisits.crypto.LunaCryptokiException: function 'C_Initialize' returns 0x30 at com.chrysalisits.crypto.LunaCryptokiException.ThrowNew(LunaCryptokiException.java:57) at com.chrysalisits.crypto.LunaAPI.Initialize(Native Method) at com.chrysalisits.crypto.LunaTokenManager.(LunaTokenManager.java:107) at com.chrysalisits.crypto.LunaTokenManager.getInstance(LunaTokenManager.java:62)
the documentation says it is not Java error, but I failed to resolve
http://leifj.nordu.net/luna-docs/007-011136-002_lunasa_5-1_webhelp_rev-a/content/sdk/jsp_errors.htm