Our application needs to interact with SafeNet HSM through Luna JSP api using java. We tried the following and were able to connect
LunaSlotManager slotManager = LunaSlotManager.getInstance();
slotManager.login(password);
But my question is that in my program I didn't give any IP Address of the HSM device. Then how does it detect and connect?