Echidna supports HSMs through the PKCS#11 Java Cryptography Provider.
Key generation or commissioning would be done first using the HSMs native toolset.
nCipher nShield models are fully supported.