Secret.Retrievable
Description: Reference for Secret.Retrievable

### Interface

# SecretRetrievable

#### Description [src]

    interface Secret.Retrievable : GObject.Object

A read-only view of a secret item in the Secret Service.

`SecretRetrievable` provides a read-only view of a secret item stored in the Secret Service.

Each item has a value, represented by a `SecretValue`, which can be retrieved by `secret_retrievable_retrieve_secret()` and `secret_retrievable_retrieve_secret_finish()`.

Stability: | Stable
Available since: | 0.19.0

#### Prerequisite

In order to implement Retrievable, your type must inherit from `GObject`.

#### Implementations

- SecretItem

#### Instance methods

###### secret_retrievable_get_attributes

Get the attributes of this object.

Available since: 0.19.0

###### secret_retrievable_get_created

Get the created date and time of the object.

Available since: 0.19.0

###### secret_retrievable_get_label

Get the label of this item.

Available since: 0.19.0

###### secret_retrievable_get_modified

Get the modified date and time of the object.

Available since: 0.19.0

###### secret_retrievable_retrieve_secret

Retrieve the secret value of this object.

Available since: 0.19.0

###### secret_retrievable_retrieve_secret_finish

Complete asynchronous operation to retrieve the secret value of this object.

Available since: 0.19.0

###### secret_retrievable_retrieve_secret_sync

Retrieve the secret value of this object synchronously.

Available since: 0.19.0

#### Properties

###### Secret.Retrievable:attributes

The attributes set on this item.

Available since: 0.19.0

###### Secret.Retrievable:created

The date and time (in seconds since the UNIX epoch) that this item was created.

Available since: 0.19.0

###### Secret.Retrievable:label

The human readable label for the item.

Available since: 0.19.0

###### Secret.Retrievable:modified

The date and time (in seconds since the UNIX epoch) that this item was last modified.

Available since: 0.19.0

#### Interface structure

    struct SecretRetrievableInterface {
      GTypeInterface parent_iface;
      void (* retrieve_secret) (
        SecretRetrievable* self,
        GCancellable* cancellable,
        GAsyncReadyCallback callback,
        gpointer user_data
      );
      SecretValue* (* retrieve_secret_finish) (
        SecretRetrievable* self,
        GAsyncResult* result,
        GError** error
      );

    }

###### Interface members

`parent_iface` |
    GTypeInterface
| The parent interface.
`retrieve_secret` |
    void (* retrieve_secret) (
        SecretRetrievable* self,
        GCancellable* cancellable,
        GAsyncReadyCallback callback,
        gpointer user_data
      )
| No description available.
`retrieve_secret_finish` |
    SecretValue* (* retrieve_secret_finish) (
        SecretRetrievable* self,
        GAsyncResult* result,
        GError** error
      )
| No description available.

#### Virtual methods

###### Secret.Retrievable.retrieve_secret

Retrieve the secret value of this object.

###### Secret.Retrievable.retrieve_secret_finish

Complete asynchronous operation to retrieve the secret value of this object.