Class EmulatorP11ModuleFactory

    • Constructor Detail

      • EmulatorP11ModuleFactory

        public EmulatorP11ModuleFactory()
    • Method Detail

      • canCreateModule

        public boolean canCreateModule​(String type)
        Description copied from interface: P11ModuleFactory
        Indicates whether a PKCS#11 module of the given type can be created or not.
        Specified by:
        canCreateModule in interface P11ModuleFactory
        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

        public P11Module newModule​(P11ModuleConf conf)
                            throws org.xipki.pkcs11.wrapper.TokenException
        Description copied from interface: P11ModuleFactory
        Creates a new signer.
        Specified by:
        newModule in interface P11ModuleFactory
        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.