![]() |
![]() |
![]() |
libsignon-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
SignonIdentity; 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 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 (); SignonIdentity * signon_identity_new_from_db (guint32 id
); 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 gchar * const *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
);
typedef struct _SignonIdentity SignonIdentity;
Opaque struct. Use the accessor functions below.
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 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 ();
Construct new, empty, identity object.
Returns : |
an instance of an SignonIdentity. |
SignonIdentity * signon_identity_new_from_db (guint32 id
);
Construct an identity object associated with an existing identity record.
|
identity ID. |
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 gchar * const *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. |
|
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. |
"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. |