Service

A proxy object representing the Secret Service.

class Service : DBusProxy {}

Constructors

this
this(SecretService* secretService, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Aliases

getFlags
alias getFlags = DBusProxy.getFlags
Undocumented in source.

Functions

clear
void clear(Schema schema, HashTable attributes, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Remove unlocked items which match the attributes from the secret service.

clearFinish
bool clearFinish(AsyncResultIF result)

Finish asynchronous operation to remove items from the secret service.

clearSync
bool clearSync(Schema schema, HashTable attributes, Cancellable cancellable)

Remove unlocked items which match the attributes from the secret service.

createCollectionDbusPath
void createCollectionDbusPath(HashTable properties, string alias_, SecretCollectionCreateFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Create a new collection in the secret service, and return its path.

createCollectionDbusPathFinish
string createCollectionDbusPathFinish(AsyncResultIF result)

Finish asynchronous operation to create a new collection in the secret service.

createCollectionDbusPathSync
string createCollectionDbusPathSync(HashTable properties, string alias_, SecretCollectionCreateFlags flags, Cancellable cancellable)

Create a new collection in the secret service and return its path.

createItemDbusPath
void createItemDbusPath(string collectionPath, HashTable properties, Value value, SecretItemCreateFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Create a new item in a secret service collection and return its D-Bus object path.

createItemDbusPathFinish
string createItemDbusPathFinish(AsyncResultIF result)

Finish asynchronous operation to create a new item in the secret service.

createItemDbusPathSync
string createItemDbusPathSync(string collectionPath, HashTable properties, Value value, SecretItemCreateFlags flags, Cancellable cancellable)

Create a new item in a secret service collection and return its D-Bus object path.

decodeDbusSecret
Value decodeDbusSecret(Variant value)

Decode a #SecretValue into GVariant received with the Secret Service DBus API.

deleteItemDbusPath
void deleteItemDbusPath(string itemPath, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Delete a secret item from the secret service.

deleteItemDbusPathFinish
bool deleteItemDbusPathFinish(AsyncResultIF result)

Complete an asynchronous operation to delete a secret item from the secret service.

deleteItemDbusPathSync
bool deleteItemDbusPathSync(string itemPath, Cancellable cancellable)

Delete a secret item from the secret service.

encodeDbusSecret
Variant encodeDbusSecret(Value value)

Encodes a #SecretValue into GVariant for use with the Secret Service DBus API.

ensureSession
void ensureSession(Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Ensure that the #SecretService proxy has established a session with the Secret Service. This session is used to transfer secrets.

ensureSessionFinish
bool ensureSessionFinish(AsyncResultIF result)

Finish an asynchronous operation to ensure that the #SecretService proxy has established a session with the Secret Service.

ensureSessionSync
bool ensureSessionSync(Cancellable cancellable)

Ensure that the #SecretService proxy has established a session with the Secret Service. This session is used to transfer secrets.

getCollectionGtype
GType getCollectionGtype()

Get the GObject type for collections instantiated by this service. This will always be either #SecretCollection or derived from it.

getCollections
ListG getCollections()

Get a list of #SecretCollection objects representing all the collections in the secret service.

getFlags
SecretServiceFlags getFlags()

Get the flags representing what features of the #SecretService proxy have been initialized.

getItemGtype
GType getItemGtype()

Get the GObject type for items instantiated by this service. This will always be either #SecretItem or derived from it.

getSecretForDbusPath
void getSecretForDbusPath(string itemPath, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Get the secret value for a secret item stored in the service.

getSecretForDbusPathFinish
Value getSecretForDbusPathFinish(AsyncResultIF result)

Complete asynchronous operation to get the secret value for an secret item stored in the service.

getSecretForDbusPathSync
Value getSecretForDbusPathSync(string itemPath, Cancellable cancellable)

Get the secret value for a secret item stored in the service.

getSecretsForDbusPaths
void getSecretsForDbusPaths(string[] itemPaths, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Get the secret values for a secret item stored in the service.

getSecretsForDbusPathsFinish
HashTable getSecretsForDbusPathsFinish(AsyncResultIF result)

Complete asynchronous operation to get the secret values for an secret items stored in the service.

getSecretsForDbusPathsSync
HashTable getSecretsForDbusPathsSync(string[] itemPaths, Cancellable cancellable)

Get the secret values for a secret item stored in the service.

getServiceStruct
SecretService* getServiceStruct(bool transferOwnership)

Get the main Gtk struct

getSessionAlgorithms
string getSessionAlgorithms()

Get the set of algorithms being used to transfer secrets between this secret service proxy and the Secret Service itself.

getSessionDbusPath
string getSessionDbusPath()

Get the D-Bus object path of the session object being used to transfer secrets between this secret service proxy and the Secret Service itself.

getStruct
void* getStruct()

the main Gtk struct as a void*

loadCollections
void loadCollections(Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Ensure that the #SecretService proxy has loaded all the collections present in the Secret Service. This affects the result of secret_service_get_collections().

loadCollectionsFinish
bool loadCollectionsFinish(AsyncResultIF result)

Complete an asynchronous operation to ensure that the #SecretService proxy has loaded all the collections present in the Secret Service.

loadCollectionsSync
bool loadCollectionsSync(Cancellable cancellable)

Ensure that the #SecretService proxy has loaded all the collections present in the Secret Service. This affects the result of secret_service_get_collections().

lock
void lock(ListG objects, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Lock items or collections in the secret service.

lockDbusPaths
void lockDbusPaths(string[] paths, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Lock items or collections in the secret service.

lockDbusPathsFinish
int lockDbusPathsFinish(AsyncResultIF result, string[] locked)

Complete asynchronous operation to lock items or collections in the secret service.

lockDbusPathsSync
int lockDbusPathsSync(string[] paths, Cancellable cancellable, string[] locked)

Lock items or collections in the secret service.

lockFinish
int lockFinish(AsyncResultIF result, ListG locked)

Complete asynchronous operation to lock items or collections in the secret service.

lockSync
int lockSync(ListG objects, Cancellable cancellable, ListG locked)

Lock items or collections in the secret service.

lookup
void lookup(Schema schema, HashTable attributes, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Lookup a secret value in the secret service.

lookupFinish
Value lookupFinish(AsyncResultIF result)

Finish asynchronous operation to lookup a secret value in the secret service.

lookupSync
Value lookupSync(Schema schema, HashTable attributes, Cancellable cancellable)

Lookup a secret value in the secret service.

prompt
void prompt(Prompt prompt, VariantType returnType, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Perform prompting for a #SecretPrompt.

promptAtDbusPath
void promptAtDbusPath(string promptPath, VariantType returnType, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Perform prompting for a #SecretPrompt.

promptAtDbusPathFinish
Variant promptAtDbusPathFinish(AsyncResultIF result)

Complete asynchronous operation to perform prompting for a #SecretPrompt.

promptAtDbusPathSync
Variant promptAtDbusPathSync(string promptPath, Cancellable cancellable, VariantType returnType)

Perform prompting for a #SecretPrompt.

promptFinish
Variant promptFinish(AsyncResultIF result)

Complete asynchronous operation to perform prompting for a #SecretPrompt.

promptSync
Variant promptSync(Prompt prompt, Cancellable cancellable, VariantType returnType)

Perform prompting for a #SecretPrompt.

readAliasDbusPath
void readAliasDbusPath(string alias_, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Lookup which collection is assigned to this alias. Aliases help determine well known collections, such as 'default'. This method looks up the dbus object path of the well known collection.

readAliasDbusPathFinish
string readAliasDbusPathFinish(AsyncResultIF result)

Finish an asynchronous operation to lookup which collection is assigned to an alias. This method returns the DBus object path of the collection

readAliasDbusPathSync
string readAliasDbusPathSync(string alias_, Cancellable cancellable)

Lookup which collection is assigned to this alias. Aliases help determine well known collections, such as 'default'. This method returns the dbus object path of the collection.

search
void search(Schema schema, HashTable attributes, SecretSearchFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Search for items matching the @attributes. All collections are searched. The @attributes should be a table of string keys and string values.

searchFinish
ListG searchFinish(AsyncResultIF result)

Complete asynchronous operation to search for items.

searchForDbusPaths
void searchForDbusPaths(Schema schema, HashTable attributes, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Search for items matching the @attributes, and return their D-Bus object paths. All collections are searched. The @attributes should be a table of string keys and string values.

searchForDbusPathsFinish
bool searchForDbusPathsFinish(AsyncResultIF result, string[] unlocked, string[] locked)

Complete asynchronous operation to search for items, and return their D-Bus object paths.

searchForDbusPathsSync
bool searchForDbusPathsSync(Schema schema, HashTable attributes, Cancellable cancellable, string[] unlocked, string[] locked)

Search for items matching the @attributes, and return their D-Bus object paths. All collections are searched. The @attributes should be a table of string keys and string values.

searchSync
ListG searchSync(Schema schema, HashTable attributes, SecretSearchFlags flags, Cancellable cancellable)

Search for items matching the @attributes. All collections are searched. The @attributes should be a table of string keys and string values.

setAlias
void setAlias(string alias_, Collection collection, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Assign a collection to this alias. Aliases help determine well known collections, such as 'default'.

setAliasFinish
bool setAliasFinish(AsyncResultIF result)

Finish an asynchronous operation to assign a collection to an alias.

setAliasSync
bool setAliasSync(string alias_, Collection collection, Cancellable cancellable)

Assign a collection to this alias. Aliases help determine well known collections, such as 'default'.

setAliasToDbusPath
void setAliasToDbusPath(string alias_, string collectionPath, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Assign a collection to this alias. Aliases help determine well known collections, such as 'default'. This method takes the dbus object path of the collection to assign to the alias.

setAliasToDbusPathFinish
bool setAliasToDbusPathFinish(AsyncResultIF result)

Finish an asynchronous operation to assign a collection to an alias.

setAliasToDbusPathSync
bool setAliasToDbusPathSync(string alias_, string collectionPath, Cancellable cancellable)

Assign a collection to this alias. Aliases help determine well known collections, such as 'default'. This method takes the dbus object path of the collection to assign to the alias.

store
void store(Schema schema, HashTable attributes, string collection, string label, Value value, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Store a secret value in the secret service.

storeFinish
bool storeFinish(AsyncResultIF result)

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

storeSync
bool storeSync(Schema schema, HashTable attributes, string collection, string label, Value value, Cancellable cancellable)

Store a secret value in the secret service.

unlock
void unlock(ListG objects, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Unlock items or collections in the secret service.

unlockDbusPaths
void unlockDbusPaths(string[] paths, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Unlock items or collections in the secret service.

unlockDbusPathsFinish
int unlockDbusPathsFinish(AsyncResultIF result, string[] unlocked)

Complete asynchronous operation to unlock items or collections in the secret service.

unlockDbusPathsSync
int unlockDbusPathsSync(string[] paths, Cancellable cancellable, string[] unlocked)

Unlock items or collections in the secret service.

unlockFinish
int unlockFinish(AsyncResultIF result, ListG unlocked)

Complete asynchronous operation to unlock items or collections in the secret service.

unlockSync
int unlockSync(ListG objects, Cancellable cancellable, ListG unlocked)

Unlock items or collections in the secret service.

Static functions

disconnect
void disconnect()

Disconnect the default #SecretService proxy returned by secret_service_get() and secret_service_get_sync().

get
void get(SecretServiceFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Get a #SecretService proxy for the Secret Service. If such a proxy object already exists, then the same proxy is returned.

getFinish
Service getFinish(AsyncResultIF result)

Complete an asynchronous operation to get a #SecretService proxy for the Secret Service.

getSync
Service getSync(SecretServiceFlags flags, Cancellable cancellable)

Get a #SecretService proxy for the Secret Service. If such a proxy object already exists, then the same proxy is returned.

getType
GType getType()
open
void open(GType serviceGtype, string serviceBusName, SecretServiceFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Create a new #SecretService proxy for the Secret Service.

openFinish
Service openFinish(AsyncResultIF result)

Complete an asynchronous operation to create a new #SecretService proxy for the Secret Service.

openSync
Service openSync(GType serviceGtype, string serviceBusName, SecretServiceFlags flags, Cancellable cancellable)

Create a new #SecretService proxy for the Secret Service.

Variables

secretService
SecretService* secretService;

the main Gtk struct

Meta