Interface P11ModuleFactory

    • Method Detail

      • canCreateModule

        boolean canCreateModule​(String type)
        Indicates whether a PKCS#11 module of the given type can be created or not.
        Parameters:
        type - Type of the signer. Must not be null.
        Returns:
        true if PKCS#11 module of the given type can be created, false otherwise.
      • newModule

        P11Module newModule​(P11ModuleConf conf)
                     throws org.xipki.pkcs11.wrapper.TokenException
        Creates a new signer.
        Parameters:
        conf - Configuration of the PKCS#11 module. Must not be null.
        Returns:
        new PKCS#11 module.
        Throws:
        org.xipki.pkcs11.wrapper.TokenException - if PKCS#11 module could not be created.