IdentityInfo
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "signon_identity_info_get_type ()" ) ]
[ Compact ]
public class IdentityInfo
Opaque struct.
Use the accessor functions below.
Content:
Creation methods:
Methods:
- public void add_access_control (string system_context, string application_context)
Add an ACL to this identity.
- public IdentityInfo copy ()
Get a newly-allocated copy of info
.
- public void free ()
Destroys the given IdentityInfo item.
- public List<SecurityContext> get_access_control_list ()
Get an array of ACL statements of the identity.
- public unowned string get_caption ()
Get the display name of this.
- public int get_id ()
Get the numeric ID of this.
- public IdentityType get_identity_type ()
Get the type of the identity.
- public unowned HashTable<string,string[]> get_methods ()
Get a hash table of the methods and mechanisms of
this.
- public unowned string[] get_realms ()
Get an array of the realms of this.
- public bool get_storing_secret ()
Get whether the secret of this
should be stored.
- public unowned string get_username ()
Get the username of this.
- public void remove_method (string method)
Remove method
from the list of allowed authentication
methods.
- public void set_access_control_list (List<SecurityContext> access_control_list)
Specifies the ACL for this identity.
- public void set_caption (string caption)
Sets the caption (display name) for the identity.
- public void set_identity_type (IdentityType type)
Specifies the type of this identity.
- public void set_method (string method, string[] mechanisms)
Adds a method to the list of allowed methods.
- public void set_realms (string[] realms)
Specify what realms this identity can be used in.
- public void set_secret (string secret, bool store_secret)
Sets the secret (password) for the identity, and whether the signon
daemon should remember it.
- public void set_username (string username)
Sets the username for the identity.