Skip to content

Latest commit

 

History

History
136 lines (78 loc) · 2.02 KB

pkcs11.rst

File metadata and controls

136 lines (78 loc) · 2.02 KB

≡ pkcs11 API

pkcs11 API

PKCS#11 module management API

.. rst-class:: api-main-section

Permissions

.. api-member::
   :name: :permission:`pkcs11`

.. rst-class:: api-permission-info

Note

The permission pkcs11 is required to use messenger.pkcs11.*.

.. rst-class:: api-main-section

Functions

getModuleSlots(name)

.. api-section-annotation-hack::

Enumerate a module's slots, each with their name and whether a token is present

.. api-header::
   :label: Parameters


   .. api-member::
      :name: ``name``
      :type: (string)


.. api-header::
   :label: Required permissions

   - :permission:`pkcs11`

installModule(name, [flags])

.. api-section-annotation-hack::

Install a PKCS#11 module with a given name

.. api-header::
   :label: Parameters


   .. api-member::
      :name: ``name``
      :type: (string)


   .. api-member::
      :name: [``flags``]
      :type: (integer, optional)


.. api-header::
   :label: Required permissions

   - :permission:`pkcs11`

isModuleInstalled(name)

.. api-section-annotation-hack::

checks whether a PKCS#11 module, given by name, is installed

.. api-header::
   :label: Parameters


   .. api-member::
      :name: ``name``
      :type: (string)


.. api-header::
   :label: Required permissions

   - :permission:`pkcs11`

uninstallModule(name)

.. api-section-annotation-hack::

Remove an installed PKCS#11 module from firefox

.. api-header::
   :label: Parameters


   .. api-member::
      :name: ``name``
      :type: (string)


.. api-header::
   :label: Required permissions

   - :permission:`pkcs11`