Signon.IdentityInfo¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Signon.IdentityInfo¶
Opaque struct. Use the accessor functions below.
- classmethod new()¶
- Returns:
a new
Signon.IdentityInfo
item.- Return type:
Creates a new
Signon.IdentityInfo
item.
- add_access_control(system_context, application_context)¶
- Parameters:
Add an ACL to this identity. This is an helper function.
- copy()¶
- Returns:
a copy of the given
Signon.IdentityInfo
, orNone
on failure.- Return type:
Get a newly-allocated copy of info.
- free()¶
Destroys the given
Signon.IdentityInfo
item.
- get_access_control_list()¶
- Returns:
a
GLib.List
ofSignon.SecurityContext
representing ACL statements. Each element should be freed withSignon.SecurityContext.copy
() after use.- Return type:
Get an array of ACL statements of the identity.
- Returns:
the display name for the identity.
- Return type:
Get the display name of self.
- get_identity_type()¶
- Returns:
the type of the identity.
- Return type:
Get the type of the identity.
- get_methods()¶
-
Get a hash table of the methods and mechanisms of self.
- get_realms()¶
-
Get an array of the realms of self.
- get_storing_secret()¶
-
Get whether the secret of self should be stored.
- remove_method(method)¶
- Parameters:
method (
str
) – an authentication method.
Remove method from the list of allowed authentication methods. If all methods are removed, then all methods are allowed.
- set_access_control_list(access_control_list)¶
- Parameters:
access_control_list ([
Signon.SecurityContext
]) – aGLib.List
ofSignon.SecurityContext
representing ACL security domains.
Specifies the ACL for this identity. The actual meaning of the ACL depends on the security framework used by signond.
- Parameters:
caption (
str
) – the caption.
Sets the caption (display name) for the identity.
- set_identity_type(type)¶
- Parameters:
type (
Signon.IdentityType
) – the type of the identity.
Specifies the type of this identity.
- set_method(method, mechanisms)¶
- Parameters:
Adds a method to the list of allowed methods. If this method is not called even once, then all methods are allowed. Mechanisms are method-specific variants of authentication.
- set_realms(realms)¶
-
Specify what realms this identity can be used in.
- set_secret(secret, store_secret)¶
- Parameters:
Sets the secret (password) for the identity, and whether the signon daemon should remember it.