| libgsignon-glib Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | Signals | ||||
SignonIdentity; typedef SignonIdentityFilter; typedef SignonIdentityList; void (*SignonIdentityInfoCb) (SignonIdentity *self,const SignonIdentityInfo *info,const GError *error,gpointer user_data); typedef SignonIdentityReferenceAddedCb; typedef SignonIdentityReferenceRemovedCb; typedef SignonIdentityRemovedCb; typedef SignonIdentitySignedOutCb; void (*SignonIdentityStoreCredentialsCb) (SignonIdentity *self,guint32 id,const GError *error,gpointer user_data); void (*SignonIdentityVerifyCb) (SignonIdentity *self,gboolean valid,const GError *error,gpointer user_data); void (*SignonIdentityVoidCb) (SignonIdentity *self,const GError *error,gpointer user_data); void (*SignonIdentitySessionReadyCb) (SignonAuthSession *self,GError *error,GDBusConnection *connection,const gchar *bus_name,const gchar *object_path); void signon_identity_add_reference (SignonIdentity *self,const gchar *reference,SignonIdentityReferenceAddedCb cb,gpointer user_data); SignonAuthSession * signon_identity_create_session (SignonIdentity *self,const gchar *method,GError **error); const GError * signon_identity_get_last_error (SignonIdentity *identity); SignonIdentity * signon_identity_new (const gchar *application_context); SignonIdentity * signon_identity_new_from_db (guint32 id,const gchar *application_context); void signon_identity_query_info (SignonIdentity *self,SignonIdentityInfoCb cb,gpointer user_data); void signon_identity_remove (SignonIdentity *self,SignonIdentityRemovedCb cb,gpointer user_data); void signon_identity_remove_reference (SignonIdentity *self,const gchar *reference,SignonIdentityReferenceRemovedCb cb,gpointer user_data); void signon_identity_signout (SignonIdentity *self,SignonIdentitySignedOutCb cb,gpointer user_data); void signon_identity_store_credentials_with_args (SignonIdentity *self,const gchar *username,const gchar *secret,const gboolean store_secret,const GHashTable *methods,const gchar *caption,const gchar * const *realms,const SignonSecurityContext *owner,const SignonSecurityContextList *access_control_list,SignonIdentityType type,SignonIdentityStoreCredentialsCb cb,gpointer user_data); void signon_identity_store_credentials_with_info (SignonIdentity *self,const SignonIdentityInfo *info,SignonIdentityStoreCredentialsCb cb,gpointer user_data); void signon_identity_verify_secret (SignonIdentity *self,const gchar *secret,SignonIdentityVerifyCb cb,gpointer user_data); void signon_identity_get_auth_session (SignonIdentity *self,SignonAuthSession *session,const gchar *method,SignonIdentitySessionReadyCb cb); void signon_identity_info_access_control_list_append (SignonIdentityInfo *info,SignonSecurityContext *security_context); const SignonSecurityContext * signon_identity_info_get_owner (const SignonIdentityInfo *info); void signon_identity_info_set_methods (SignonIdentityInfo *info,const GHashTable *methods); void signon_identity_info_set_owner (SignonIdentityInfo *info,const SignonSecurityContext *owner); void signon_identity_info_set_owner_from_values (SignonIdentityInfo *info,const gchar *system_context,const gchar *application_context);
typedef struct _SignonIdentity SignonIdentity;
Opaque struct. Use the accessor functions below.
typedef GHashTable SignonIdentityFilter;
GHashTable based filter variant dictionary.
void (*SignonIdentityInfoCb) (SignonIdentity *self,const SignonIdentityInfo *info,const GError *error,gpointer user_data);
Callback to be passed to signon_identity_query_info().
|
the SignonIdentity. |
|
the SignonIdentityInfo for self. |
|
a GError if an error occurred, or NULL otherwise. |
|
the user data that was passed when installing this callback. |
typedef SignonIdentityVoidCb SignonIdentityReferenceAddedCb;
Callback to be passed to signon_identity_add_reference().
typedef SignonIdentityVoidCb SignonIdentityReferenceRemovedCb;
Callback to be passed to signon_identity_remove_reference().
typedef SignonIdentityVoidCb SignonIdentityRemovedCb;
Callback to be passed to signon_identity_remove().
typedef SignonIdentityVoidCb SignonIdentitySignedOutCb;
Callback to be passed to signon_identity_signout().
void (*SignonIdentityStoreCredentialsCb) (SignonIdentity *self,guint32 id,const GError *error,gpointer user_data);
Callback to be passed to signon_identity_store_credentials_with_args() or
signon_identity_store_credentials_with_info().
|
the SignonIdentity. |
|
the numeric ID of the identity in the database. |
|
a GError if an error occurred, or NULL otherwise. |
|
the user data that was passed when installing this callback. |
void (*SignonIdentityVerifyCb) (SignonIdentity *self,gboolean valid,const GError *error,gpointer user_data);
Callback to be passed to signon_identity_verify_secret().
|
the SignonIdentity. |
|
whether the secret is valid. |
|
a GError if an error occurred, or NULL otherwise. |
|
the user data that was passed when installing this callback. |
void (*SignonIdentityVoidCb) (SignonIdentity *self,const GError *error,gpointer user_data);
Generic callback to be passed to several SignonIdentity methods.
|
the SignonIdentity. |
|
a GError if an error occurred, or NULL otherwise. |
|
the user data that was passed when installing this callback. |
void (*SignonIdentitySessionReadyCb) (SignonAuthSession *self,GError *error,GDBusConnection *connection,const gchar *bus_name,const gchar *object_path);
Callback to be passed to signon_identity_get_auth_session().
|
the SignonAuthSession. |
|
a GError if an error occurred, or NULL otherwise. |
|
a GDBusConnection for the session. |
|
a D-Bus bus name for the session. |
|
a D-Bus object path for the session. |
void signon_identity_add_reference (SignonIdentity *self,const gchar *reference,SignonIdentityReferenceAddedCb cb,gpointer user_data);
Adds named reference to identity
|
the SignonIdentity. |
|
reference to be added |
|
callback |
|
user_data. |
SignonAuthSession * signon_identity_create_session (SignonIdentity *self,const gchar *method,GError **error);
Creates an authentication session for this identity.
|
the SignonIdentity. |
|
method. |
|
pointer to a location which will receive the error, if any. |
Returns : |
a new SignonAuthSession. [transfer full] |
const GError * signon_identity_get_last_error (SignonIdentity *identity);
Get the most recent error that occurred on identity.
|
the SignonIdentity. |
Returns : |
a GError containing the most recent error, or NULL on failure. |
SignonIdentity * signon_identity_new (const gchar *application_context);
Construct new, empty, identity object.
|
application security context, can be NULL. |
Returns : |
an instance of an SignonIdentity. |
SignonIdentity * signon_identity_new_from_db (guint32 id,const gchar *application_context);
Construct an identity object associated with an existing identity record.
|
identity ID. |
|
application security context, can be NULL. |
Returns : |
an instance of a SignonIdentity. |
void signon_identity_query_info (SignonIdentity *self,SignonIdentityInfoCb cb,gpointer user_data);
Fetches the SignonIdentityInfo data associated with this identity.
|
the SignonIdentity. |
|
callback. [scope async] |
|
user_data. |
void signon_identity_remove (SignonIdentity *self,SignonIdentityRemovedCb cb,gpointer user_data);
Removes the corresponding credentials record from the database.
|
the SignonIdentity. |
|
callback to be called when the operation has completed. [scope async] |
|
user_data to pass to the callback. |
void signon_identity_remove_reference (SignonIdentity *self,const gchar *reference,SignonIdentityReferenceRemovedCb cb,gpointer user_data);
Removes named reference from identity
|
the SignonIdentity. |
|
reference to be removed |
|
callback |
|
user_data. |
void signon_identity_signout (SignonIdentity *self,SignonIdentitySignedOutCb cb,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).
|
the SignonIdentity. |
|
callback. [scope async] |
|
user_data. |
void signon_identity_store_credentials_with_args (SignonIdentity *self,const gchar *username,const gchar *secret,const gboolean store_secret,const GHashTable *methods,const gchar *caption,const gchar * const *realms,const SignonSecurityContext *owner,const SignonSecurityContextList *access_control_list,SignonIdentityType type,SignonIdentityStoreCredentialsCb cb,gpointer user_data);
Stores the given data into the identity.
|
the SignonIdentity. |
|
username. |
|
secret. |
|
whether signond should store the password. |
|
methods. [transfer none][element-type utf8 GStrv] |
|
caption. |
|
realms. |
|
owner. |
|
access control list. |
|
the type of the identity. |
|
callback. [scope async] |
|
user_data. |
void signon_identity_store_credentials_with_info (SignonIdentity *self,const SignonIdentityInfo *info,SignonIdentityStoreCredentialsCb cb,gpointer user_data);
Stores the data from info into the identity.
|
the SignonIdentity. |
|
the SignonIdentityInfo data to store. |
|
callback. [scope async] |
|
user_data. |
void signon_identity_verify_secret (SignonIdentity *self,const gchar *secret,SignonIdentityVerifyCb cb,gpointer user_data);
Verifies the given secret.
|
the SignonIdentity. |
|
the secret (password) to be verified. |
|
callback. [scope async] |
|
user_data. |
void signon_identity_get_auth_session (SignonIdentity *self,SignonAuthSession *session,const gchar *method,SignonIdentitySessionReadyCb cb);
Obtain a remote object for a local session object.
|
the SignonIdentity. |
|
the SignonAuthSession object to get the remote object for. |
|
method name for the session. |
|
completion callback. [scope async] |
void signon_identity_info_access_control_list_append (SignonIdentityInfo *info,SignonSecurityContext *security_context);
Appends a new SignonSecurityContext item to the access control list.
|
the SignonIdentityInfo. |
|
(transfer full) a security context to be appended. |
const SignonSecurityContext * signon_identity_info_get_owner
(const SignonIdentityInfo *info);
Get owner security context of info.
|
the SignonIdentityInfo. |
Returns : |
a security context. [transfer none] |
void signon_identity_info_set_methods (SignonIdentityInfo *info,const GHashTable *methods);
Set allowed methods. Mechanisms are method-specific functions.
|
the SignonIdentityInfo. |
|
methods. [transfer none][element-type utf8 GStrv] |
void signon_identity_info_set_owner (SignonIdentityInfo *info,const SignonSecurityContext *owner);
Specify owner security context.
|
the SignonIdentityInfo. |
|
(transfer none) a security context of owner. |
void signon_identity_info_set_owner_from_values (SignonIdentityInfo *info,const gchar *system_context,const gchar *application_context);
Specify owner security context.
|
the SignonIdentityInfo. |
|
owner's system context. |
|
owner's application context. |
"app-ctx" property"app-ctx" gchar* : Read / Write
Set/Get Application Security Context.
Default value: ""
"signout" signalvoid user_function (SignonIdentity *arg0,
gpointer user_data) : No Hooks
Emitted when the identity was signed out.
|
user data set when the signal handler was connected. |