Class P11PKIConfiguration


  • public class P11PKIConfiguration
    extends PKIConfiguration
    Class for holding the configuration for PKCS#11 of an instance of the PKI
    • Constructor Detail

      • P11PKIConfiguration

        public P11PKIConfiguration​(@NonNull
                                   @NonNull String rootCAAlias,
                                   String pkcs11ConfigPath,
                                   String pkcs11Pin)
        Parameters:
        rootCAAlias - the alias for the root CA that should be used
        pkcs11ConfigPath - the path of the PKCS#11 configuration file
        pkcs11Pin - the pin that should be used for logging in to the HSM
      • P11PKIConfiguration

        public P11PKIConfiguration​(@NonNull
                                   @NonNull String rootCAAlias,
                                   String pkcs11ConfigPath,
                                   char[] pkcs11Pin)
        Parameters:
        rootCAAlias - the alias for the root CA that should be used
        pkcs11ConfigPath - the path of the PKCS#11 configuration file
        pkcs11Pin - the pin that should be used for logging in to the HSM
    • Method Detail

      • providerLogin

        public void providerLogin()
        Login to the HSM
      • providerLogout

        public void providerLogout()
        Logout from the HSM
      • getPkcs11ProviderName

        public String getPkcs11ProviderName()
      • getPkcs11Pin

        public char[] getPkcs11Pin()