Home > |
SDK Reference Guide > Java Interfaces > Re-Establishing a Connection Between Your Java Application and Luna SA
|
---|
This snippet of java code re-establishes a connection between a Java Application and Luna SA in the event of a disconnect (for example, firewall rules, network issues).
Note: All existing crypto operations should be stopped before performing the reconnect.
public void reconnectHsmServer() {
LunaSlotManager lsm = LunaSlotManager.getInstance();
lsm.reinitialize();
lsm.login(“<HSM partition password>”);
}