Class PKCS11CryptoEngine

  • All Implemented Interfaces:
    CryptoEngine

    public class PKCS11CryptoEngine
    extends JavaKeyStoreCryptoEngine
    Implementation of CryptoEngine that uses a PKCS#11 backend, such as a Hardware Security Module (HSM). This implementation uses the SunPKCS11 provider. (from Java 7 to 15)
    • Constructor Detail

      • PKCS11CryptoEngine

        public PKCS11CryptoEngine​(String configName,
                                  char[] password)
        Constructs a new PKCS11CryptoEngine
        Parameters:
        configName - the name of a file holding the config for {SunPKCS11}
        password - the password to open the keystore. Will be overwritten with zeroes after successful opening