Safe Haskell | None |
---|
Access to KWallet.
- getPassword :: Service -> Username -> IO (Maybe Password)
- setPassword :: Service -> Username -> Password -> IO ()
- data KWalletError
KWallet access
getPassword :: Service -> Username -> IO (Maybe Password)Source
gets a password from the user's network
wallet.
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 KWalletError
if access to KWallet failed.
setPassword :: Service -> Username -> Password -> IO ()Source
adds setPassword
service username passwordpassword
for username
to
the user's network wallet.
username
is the name of the user whose password to set. service
identifies the application which sets the password.
This function throws KWalletError
if access to KWallet failed.
Errors
data KWalletError Source
KWalletDBusError ErrorName (Maybe String) |
|
KWalletOperationError String |
|
KWalletInvalidReturn [Type] [Type] |
|