Top | ![]() |
![]() |
![]() |
![]() |
Functions
Types and Values
#define | AGS_AUTHENTICATION_MANAGER_DEFAULT_SESSION_TIMEOUT |
struct | AgsLoginInfo |
#define | AGS_TYPE_AUTHENTICATION_MANAGER |
struct | AgsAuthenticationManager |
struct | AgsAuthenticationManagerClass |
Functions
AGS_AUTHENTICATION_MANAGER_GET_OBJ_MUTEX()
#define AGS_AUTHENTICATION_MANAGER_GET_OBJ_MUTEX(obj) (&(((AgsAuthenticationManager *) obj)->obj_mutex))
ags_login_info_free ()
void ags_login_info_free (AgsLoginInfo *login_info
);
Free login_info
.
Since:
ags_login_info_ref ()
void ags_login_info_ref (AgsLoginInfo *login_info
);
Increase ref-count of login_info
.
Since:
ags_login_info_unref ()
void ags_login_info_unref (AgsLoginInfo *login_info
);
Decrease ref-count of login_info
and free it if ref-count drops to 0.
Since:
ags_authentication_manager_get_authentication ()
GList * ags_authentication_manager_get_authentication (AgsAuthenticationManager *authentication_manager
);
Get authentication.
Returns
the
[element-type GObject][transfer full]
Since:
ags_authentication_manager_add_authentication ()
void ags_authentication_manager_add_authentication (AgsAuthenticationManager *authentication_manager
,);
GObject *authentication
Add authentication
to authentication_manager
.
Since:
ags_authentication_manager_remove_authentication ()
void ags_authentication_manager_remove_authentication (AgsAuthenticationManager *authentication_manager
,);
GObject *authentication
Remove authentication
from authentication_manager
.
Since:
ags_authentication_manager_get_session_timeout ()
gint64 ags_authentication_manager_get_session_timeout (AgsAuthenticationManager *authentication_manager
);
Get session timeout.
Since:
ags_authentication_manager_lookup_login ()
AgsLoginInfo * ags_authentication_manager_lookup_login (AgsAuthenticationManager *authentication_manager
,);
gchar *login
Lookup login
.
Since:
ags_authentication_manager_insert_login ()
void ags_authentication_manager_insert_login (AgsAuthenticationManager *authentication_manager
,,
gchar *loginAgsLoginInfo *login_info
);
Insert login
as key and login_info
as its value.
Since:
ags_authentication_manager_remove_login ()
void ags_authentication_manager_remove_login (AgsAuthenticationManager *authentication_manager
,);
gchar *login
Remove login
.
Since:
ags_authentication_manager_login ()
gboolean ags_authentication_manager_login (AgsAuthenticationManager *authentication_manager
,,
gchar *authentication_module,
gchar *login,
gchar *password,
gchar **user_uuid);
gchar **security_token
Login.
Parameters
authentication_manager |
||
authentication_module |
the authentication module |
|
login |
the login |
|
password |
the password |
|
user_uuid |
return location of user UUID. |
[out][transfer full] |
security_token |
return location of security token. |
[out][transfer full] |
Since:
ags_authentication_manager_logout ()
gboolean ags_authentication_manager_logout (AgsAuthenticationManager *authentication_manager
,,
GObject *security_context,
gchar *login);
gchar *security_token
Logout.
Parameters
authentication_manager |
||
security_context |
||
login |
the login |
|
security_token |
the security token |
Since:
ags_authentication_manager_get_digest ()
gchar * ags_authentication_manager_get_digest (AgsAuthenticationManager *authentication_manager
,,
gchar *authentication_module,
gchar *realm,
gchar *login);
gchar *security_token
Get digest of login
.
Parameters
authentication_manager |
||
authentication_module |
the authentication module |
|
realm |
the realm |
|
login |
the login |
|
security_token |
the security token |
Since:
ags_authentication_manager_is_session_active ()
gboolean ags_authentication_manager_is_session_active (AgsAuthenticationManager *authentication_manager
,,
GObject *security_context,
gchar *user_uuid);
gchar *security_token
Check if session is active.
Parameters
authentication_manager |
||
security_context |
the security context |
|
user_uuid |
the user's UUID |
|
security_token |
the security token |
Since:
ags_authentication_manager_get_instance ()
AgsAuthenticationManager * ags_authentication_manager_get_instance ();
Get instance.
Since:
ags_authentication_manager_new ()
AgsAuthenticationManager * ags_authentication_manager_new ();
Creates an AgsAuthenticationManager
Since:
AGS_AUTHENTICATION_MANAGER()
#define AGS_AUTHENTICATION_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUTHENTICATION_MANAGER, AgsAuthenticationManager))
AGS_AUTHENTICATION_MANAGER_CLASS()
#define AGS_AUTHENTICATION_MANAGER_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUTHENTICATION_MANAGER, AgsAuthenticationManagerClass))
AGS_AUTHENTICATION_MANAGER_GET_CLASS()
#define AGS_AUTHENTICATION_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_AUTHENTICATION_MANAGER, AgsAuthenticationManagerClass))
AGS_IS_AUTHENTICATION_MANAGER()
#define AGS_IS_AUTHENTICATION_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUTHENTICATION_MANAGER))
AGS_IS_AUTHENTICATION_MANAGER_CLASS()
#define AGS_IS_AUTHENTICATION_MANAGER_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_AUTHENTICATION_MANAGER))
Types and Values
AGS_AUTHENTICATION_MANAGER_DEFAULT_SESSION_TIMEOUT
#define AGS_AUTHENTICATION_MANAGER_DEFAULT_SESSION_TIMEOUT (2 * G_TIME_SPAN_HOUR)
struct AgsLoginInfo
struct AgsLoginInfo { gint ref_count; gint active_session_count; gchar *user_uuid; AgsSecurityContext *security_context; };
AGS_TYPE_AUTHENTICATION_MANAGER
#define AGS_TYPE_AUTHENTICATION_MANAGER (ags_authentication_manager_get_type())