Top | ![]() |
![]() |
![]() |
![]() |
SignonIdentity * | signon_identity_new () |
SignonIdentity * | signon_identity_new_from_db () |
SignonAuthSession * | signon_identity_create_session () |
const GError * | signon_identity_get_last_error () |
guint32 | signon_identity_get_id () |
void | signon_identity_query_info () |
SignonIdentityInfo * | signon_identity_query_info_finish () |
void | signon_identity_store_info () |
gboolean | signon_identity_store_info_finish () |
void | signon_identity_verify_secret () |
gboolean | signon_identity_verify_secret_finish () |
void | signon_identity_sign_out () |
gboolean | signon_identity_sign_out_finish () |
void | signon_identity_remove () |
gboolean | signon_identity_remove_finish () |
SignonIdentity * signon_identity_new ();
Construct new, empty, identity object.
SignonIdentity *
signon_identity_new_from_db (guint32 id
);
Construct an identity object associated with an existing identity record.
SignonAuthSession * signon_identity_create_session (SignonIdentity *self
,const gchar *method
,GError **error
);
Creates an authentication session for this identity.
self |
the SignonIdentity. |
|
method |
method. |
|
error |
pointer to a location which will receive the error, if any. |
const GError *
signon_identity_get_last_error (SignonIdentity *identity
);
Get the most recent error that occurred on identity
.
guint32
signon_identity_get_id (SignonIdentity *identity
);
Get the id of the identity
.
Since: 2.0
void signon_identity_query_info (SignonIdentity *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Fetches the SignonIdentityInfo associated with this identity.
self |
the SignonIdentity. |
|
cancellable |
optional GCancellable object, |
[nullable] |
callback |
a callback which will be called when the SignonIdentityInfo is available. |
|
user_data |
user data to be passed to the callback. |
Since: 2.0
SignonIdentityInfo * signon_identity_query_info_finish (SignonIdentity *self
,GAsyncResult *res
,GError **error
);
Collect the result of the signon_identity_query_info()
operation.
self |
the SignonIdentity. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
return location for error, or |
void signon_identity_store_info (SignonIdentity *self
,const SignonIdentityInfo *info
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Stores the data from info
into the identity.
self |
the SignonIdentity. |
|
info |
the SignonIdentityInfo data to store. |
|
cancellable |
optional GCancellable object, |
[nullable] |
callback |
a callback which will be called when the authentication reply is available. |
|
user_data |
user data to be passed to the callback. |
Since: 2.0
gboolean signon_identity_store_info_finish (SignonIdentity *self
,GAsyncResult *res
,GError **error
);
Collect the result of the signon_identity_store_info()
operation.
self |
the SignonIdentity. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
return location for error, or |
void signon_identity_verify_secret (SignonIdentity *self
,const gchar *secret
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Verifies the given secret.
self |
the SignonIdentity. |
|
secret |
the secret (password) to be verified. |
|
cancellable |
optional GCancellable object, |
[nullable] |
callback |
a callback which will be called when the verification is done. |
|
user_data |
user data to be passed to the callback. |
Since: 2.0
gboolean signon_identity_verify_secret_finish (SignonIdentity *self
,GAsyncResult *res
,GError **error
);
Collect the result of the signon_identity_verify_secret()
operation.
self |
the SignonIdentity. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
return location for error, or |
void signon_identity_sign_out (SignonIdentity *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asks signond to close all authentication sessions for this identity, and to remove any stored secrets associated with it (password and authentication tokens).
self |
the SignonIdentity. |
|
cancellable |
optional GCancellable object, |
[nullable] |
callback |
a callback which will be called when the operation has completed. |
|
user_data |
user data to be passed to the callback. |
Since: 2.0
gboolean signon_identity_sign_out_finish (SignonIdentity *self
,GAsyncResult *res
,GError **error
);
void signon_identity_remove (SignonIdentity *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Removes the corresponding credentials record from the database.
self |
the SignonIdentity. |
|
cancellable |
optional GCancellable object, |
[nullable] |
callback |
a callback which will be called when the operation has completed. |
|
user_data |
user data to be passed to the callback. |
Since: 2.0
gboolean signon_identity_remove_finish (SignonIdentity *self
,GAsyncResult *res
,GError **error
);
“signed-out”
signalvoid user_function (SignonIdentity *signonidentity, gpointer user_data)
Emitted when the identity was signed out.
Flags: No Hooks