Item.create

Create a new item in the secret service.

If the @flags contains %SECRET_ITEM_CREATE_REPLACE, then the secret service will search for an item matching the @attributes, and update that item instead of creating a new one.

This method may block indefinitely and should not be used in user interface threads. The secret service may prompt the user. secret_service_prompt() will be used to handle any prompts that are required.

class Item
static
void
create
(,,
HashTable attributes
,
string label
,,
SecretItemCreateFlags flags
,
Cancellable cancellable
,
GAsyncReadyCallback callback
,
void* userData
)

Parameters

collection Collection

a secret collection to create this item in

schema Schema

the schema for the attributes

attributes HashTable

attributes for the new item

label string

label for the new item

value Value

secret value for the new item

flags SecretItemCreateFlags

flags for the creation of the new item

cancellable Cancellable

optional cancellation object

callback GAsyncReadyCallback

called when the operation completes

userData void*

data to pass to the callback

Meta