management.models.key_storage ============================= .. py:module:: management.models.key_storage .. autoapi-nested-parse:: Key Storage Model. Module Contents --------------- .. py:class:: KeyStorageConfig(*args, **kwargs) Bases: :py:obj:`django.db.models.Model` Configuration model for cryptographic material storage. .. py:class:: StorageType(*args, **kwds) Bases: :py:obj:`django.db.models.TextChoices` Types of cryptographic storage. .. py:attribute:: SOFTWARE .. py:attribute:: SOFTHSM .. py:attribute:: PHYSICAL_HSM .. py:attribute:: storage_type .. py:attribute:: hsm_config .. py:attribute:: last_updated .. py:class:: Meta Meta options for the KeyStorageConfig model. .. py:attribute:: verbose_name .. py:attribute:: verbose_name_plural .. py:method:: get_config() :classmethod: Get the crypto storage configuration (singleton). :returns: The configuration instance :rtype: KeyStorageConfig :raises cls.DoesNotExist: If no configuration exists .. py:method:: get_or_create_default() :classmethod: Get the configuration or create a default one. :returns: The configuration instance :rtype: KeyStorageConfig