keyring-0.1.0.2: Keyring access

Safe HaskellNone

System.Keyring.Unix.KDE

Contents

Description

Access to KWallet.

Synopsis

KWallet access

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

getPassword service username gets a password from the user's network wallet.

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

setPassword service username password adds password 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

Constructors

KWalletDBusError ErrorName (Maybe String)

KWalletDBusError name message denotes an error received over DBus.

name is the proper name of the error, and message is a human-readable error message.

KWalletOperationError String

KWalletOperationError message denotes a failed KWallet operation.

message is a human-readable error message with details on the error.

KWalletInvalidReturn [Type] [Type]

KWalletInvalidReturn expected actual denotes an unexpected return value from a DBus method call.

expected is the expected type signature, and actual is the signature which was actually received from the remote DBus object.