| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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.
Documentation
getPassword :: Service -> Username -> IO (Maybe Password) Source
gets a password from the current keyring.getPassword service username
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
adds setPassword service username passwordpassword 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.