Top | ![]() |
![]() |
![]() |
![]() |
GSignondStorageManagerGSignondStorageManager — manages encrypted disk storage for storing the secret database |
GSignondStorageManager manages encrypted disk storage for storing the databases. The default implementation maintains a simple per-user directory accessible only to root and gsignond group, but gSSO can be configured to use a custom extension that provides a subclassed implementation of GSignondStorageManager (see GSignondExtension for instructions and pointers to examples).
gboolean
gsignond_storage_manager_initialize_storage
(GSignondStorageManager *self
);
Initialize encryption storage. This means making sure that the necessary directories under GSIGNOND_CONFIG_GENERAL_STORAGE_PATH exist and are accessible.
gboolean
gsignond_storage_manager_delete_storage
(GSignondStorageManager *self
);
Destroys all the encryption keys and wipes the storage. gsignond_wipe_directory()
is typically used for the latter.
gboolean
gsignond_storage_manager_storage_is_initialized
(GSignondStorageManager *self
);
Checks if the storage has been initialized.
const gchar *
gsignond_storage_manager_mount_filesystem
(GSignondStorageManager *self
);
Mounts an encrypted storage and returns the filesystem path of the storage mount point. This path will be set in GSignondConfig as GSIGNOND_CONFIG_GENERAL_SECURE_DIR and used to access the secret database via GSignondSecretStorage.
The default implemenation does nothing, and immediately returns the path for the secret database.
gboolean
gsignond_storage_manager_unmount_filesystem
(GSignondStorageManager *self
);
Unmounts a previously mounted encrypted storage filesystem.
gboolean
gsignond_storage_manager_filesystem_is_mounted
(GSignondStorageManager *self
);
Checks if the encrypted storage filesystem is currently mounted.
“config”
property“config” GSignondConfig *
Configuration object.
Flags: Read / Write / Construct Only