virgil_sdk.storage.private_key_storage module

class virgil_sdk.storage.private_key_storage.PrivateKeyStorage(key_exporter, key_storage=<virgil_sdk.storage.key_storage.KeyStorage object>)[source]

Bases: object

delete(name)[source]

Checks if the given alias exists in this storage and delete it.

Parameters

name – Key alias in storage.

load(name)[source]

The requested key and meta data, or None if the given alias does not exist or does not identify a key-related entry.

Parameters

name – Key name in storage.

Returns

Tuple of key and additional data loaded from storage.

store(private_key, name, meta=None)[source]

Stores the key to the given alias.

Parameters
  • private_key – PrivateKey representation.

  • name – Key name in storage.

  • meta – Additional data.