keyring-0.1.0.3: Keyring access

Safe HaskellNone

System.Keyring.Unix

Description

Access to keyrings of Unix systems.

Currently this module only supports KWallet, via System.Keyring.Unix.KDE.

This module and any of its submodules are not available on OS X. See System.Keyring.Darwin for keyring support on OS X.

Synopsis

Documentation

getPassword :: Service -> Username -> IO (Maybe Password)Source

getPassword service username gets a password from the current keyring.

username is the name of the user whose password to get. service identifies the application which fetches the password.

This function throws KeyringMissingBackendError is no keyring implementation exists for the current system and environment, and KeyringError if access to the keyring failed.

setPassword :: Service -> Username -> Password -> IO ()Source

setPassword service username password adds password for username to the current keyring.

username is the name of the user whose password to set. service identifies the application which sets the password.

This function throws KeyringMissingBackendError is no keyring implementation exists for the current system and environment, and KeyringError if access to the keyring failed.