Ags.AuthenticationManager¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
authentication |
[ |
r |
|
gobject |
r |
||
obj_mutex |
r |
||
session_timeout |
r |
Class Details¶
- class Ags.AuthenticationManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod get_instance()¶
- Returns:
- Return type:
Get instance.
New in version 3.0.0.
- classmethod new()¶
- Returns:
- Return type:
Creates an
Ags.AuthenticationManager
New in version 3.0.0.
- add_authentication(authentication)¶
- Parameters:
authentication (
GObject.Object
) – theGObject.Object
implementingAgs.Authentication
Add authentication to self.
New in version 3.0.0.
- get_authentication()¶
- Returns:
the
GLib.List
-struct containingGObject.Object
implementingAgs.Authentication
- Return type:
Get authentication.
New in version 3.0.0.
- get_digest(authentication_module, realm, login, security_token)¶
- Parameters:
- Returns:
the digest as string, or
None
if not available- Return type:
Get digest of login.
New in version 3.0.0.
- get_session_timeout()¶
- Returns:
the session timeout
- Return type:
Get session timeout.
New in version 3.0.0.
- insert_login(login, login_info)¶
- Parameters:
login (
str
) – the loginlogin_info (
Ags.LoginInfo
) – theAgs.LoginInfo
-struct
Insert login as key and login_info as its value.
New in version 3.0.0.
- is_session_active(security_context, user_uuid, security_token)¶
- Parameters:
security_context (
GObject.Object
) – the security contextuser_uuid (
str
) – the user’s UUIDsecurity_token (
str
) – the security token
- Returns:
- Return type:
Check if session is active.
New in version 3.0.0.
- login(authentication_module, login, password)¶
- Parameters:
- Returns:
True
if login was successful, otherwiseFalse
- user_uuid:
return location of user UUID
- security_token:
return location of security token
- Return type:
Login.
New in version 3.0.0.
- logout(security_context, login, security_token)¶
- Parameters:
security_context (
GObject.Object
) – theAgs.SecurityContext
login (
str
) – the loginsecurity_token (
str
) – the security token
- Returns:
- Return type:
Logout.
New in version 3.0.0.
- lookup_login(login)¶
- Parameters:
login (
str
) – the login- Returns:
the user
Ags.LoginInfo
-struct orNone
- Return type:
Lookup login.
New in version 3.0.0.
- remove_authentication(authentication)¶
- Parameters:
authentication (
GObject.Object
) – theGObject.Object
implementingAgs.Authentication
Remove authentication from self.
New in version 3.0.0.