gi-secret-0.0.1: Libsecret bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Secret.Functions

Contents

Description

 

Synopsis

Methods

errorGetQuark

errorGetQuark :: (HasCallStack, MonadIO m) => m Word32 Source #

No description available in the introspection data.

passwordClear

passwordClear Source #

Arguments

:: (HasCallStack, MonadIO m, IsCancellable a) 
=> Schema

schema: the schema for the attributes

-> Map Text Text

attributes: the attribute keys and values

-> Maybe a

cancellable: optional cancellation object

-> Maybe AsyncReadyCallback

callback: called when the operation completes

-> m () 

Remove unlocked matching passwords from the secret service.

The attributes should be a set of key and value string pairs.

All unlocked items that match the attributes will be deleted.

This method will return immediately and complete asynchronously.

passwordClearFinish

passwordClearFinish Source #

Arguments

:: (HasCallStack, MonadIO m, IsAsyncResult a) 
=> a

result: the asynchronous result passed to the callback

-> m ()

(Can throw GError)

Finish an asynchronous operation to remove passwords from the secret service.

passwordClearSync

passwordClearSync Source #

Arguments

:: (HasCallStack, MonadIO m, IsCancellable a) 
=> Schema

schema: the schema for the attributes

-> Map Text Text

attributes: the attribute keys and values

-> Maybe a

cancellable: optional cancellation object

-> m ()

(Can throw GError)

Remove unlocked matching passwords from the secret service.

The attributes should be a set of key and value string pairs.

All unlocked items that match the attributes will be deleted.

This method may block indefinitely and should not be used in user interface threads.

passwordLookup

passwordLookup Source #

Arguments

:: (HasCallStack, MonadIO m, IsCancellable a) 
=> Schema

schema: the schema for attributes

-> Map Text Text

attributes: the attribute keys and values

-> Maybe a

cancellable: optional cancellation object

-> Maybe AsyncReadyCallback

callback: called when the operation completes

-> m () 

Lookup a password in the secret service.

The attributes should be a set of key and value string pairs.

If no secret is found then Nothing is returned.

This method will return immediately and complete asynchronously.

passwordLookupFinish

passwordLookupFinish Source #

Arguments

:: (HasCallStack, MonadIO m, IsAsyncResult a) 
=> a

result: the asynchronous result passed to the callback

-> m Text

Returns: a new password string which should be freed with secret_password_free() or may be freed with free when done (Can throw GError)

Finish an asynchronous operation to lookup a password in the secret service.

passwordLookupSync

passwordLookupSync Source #

Arguments

:: (HasCallStack, MonadIO m, IsCancellable a) 
=> Schema

schema: the schema for attributes

-> Map Text Text

attributes: the attribute keys and values

-> Maybe a

cancellable: optional cancellation object

-> m Text

Returns: a new password string which should be freed with secret_password_free() or may be freed with free when done (Can throw GError)

Lookup a password in the secret service.

The attributes should be a set of key and value string pairs.

If no secret is found then Nothing is returned.

This method may block indefinitely and should not be used in user interface threads.

passwordStore

passwordStore Source #

Arguments

:: (HasCallStack, MonadIO m, IsCancellable a) 
=> Schema

schema: the schema for attributes

-> Map Text Text

attributes: the attribute keys and values

-> Maybe Text

collection: a collection alias, or D-Bus object path of the collection where to store the secret

-> Text

label: label for the secret

-> Text

password: the null-terminated password to store

-> Maybe a

cancellable: optional cancellation object

-> Maybe AsyncReadyCallback

callback: called when the operation completes

-> m () 

Store a password in the secret service.

The attributes should be a set of key and value string pairs.

If the attributes match a secret item already stored in the collection, then the item will be updated with these new values.

If collection is Nothing, then the default collection will be used. Use COLLECTION_SESSION to store the password in the session collection, which doesn't get stored across login sessions.

This method will return immediately and complete asynchronously.

passwordStoreFinish

passwordStoreFinish Source #

Arguments

:: (HasCallStack, MonadIO m, IsAsyncResult a) 
=> a

result: the asynchronous result passed to the callback

-> m ()

(Can throw GError)

Finish asynchronous operation to store a password in the secret service.

passwordStoreSync

passwordStoreSync Source #

Arguments

:: (HasCallStack, MonadIO m, IsCancellable a) 
=> Schema

schema: the schema for attributes

-> Map Text Text

attributes: the attribute keys and values

-> Maybe Text

collection: a collection alias, or D-Bus object path of the collection where to store the secret

-> Text

label: label for the secret

-> Text

password: the null-terminated password to store

-> Maybe a

cancellable: optional cancellation object

-> m ()

(Can throw GError)

Store a password in the secret service.

The attributes should be a set of key and value string pairs.

If the attributes match a secret item already stored in the collection, then the item will be updated with these new values.

If collection is Nothing, then the default collection will be used. Use COLLECTION_SESSION to store the password in the session collection, which doesn't get stored across login sessions.

This method may block indefinitely and should not be used in user interface threads.

passwordWipe

passwordWipe Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Maybe Text

password: password to clear

-> m () 

Clear the memory used by a password.