virgil_sdk.storage.key_storage module

class virgil_sdk.storage.key_storage.KeyStorage[source]

Bases: object

The provides protected storage using the user credentials to encrypt or decrypt keys.

delete(name)[source]

Checks if the given alias exists in this keystore.

Parameters

name – key name in storage

Raises

IOError if cannot find key file in storage folder

load(name)[source]

Loads the key associated with the given alias.

Parameters

name – Key name in storage.

Returns

The requested key.

Raises

IOError – if cannot find key file in storage folder

store(key_entry)[source]

Stores the key and data to the given alias.

Parameters

key_entry – Given key entry for store.

Raises

EnvironmentError – if cannot identify operation system for build user home path.