|  |  |  | polkit Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
PolkitBackendInteractiveAuthority; struct PolkitBackendInteractiveAuthorityClass; GList * polkit_backend_interactive_authority_get_admin_identities (PolkitBackendInteractiveAuthority *authority,PolkitSubject *caller,PolkitSubject *subject,PolkitIdentity *user_for_subject,const gchar *action_id,PolkitDetails *details); PolkitImplicitAuthorization polkit_backend_interactive_authority_check_authorization_sync (PolkitBackendInteractiveAuthority *authority,PolkitSubject *caller,PolkitSubject *subject,PolkitIdentity *user_for_subject,gboolean subject_is_local,gboolean subject_is_active,const gchar *action_id,PolkitDetails *details,PolkitImplicitAuthorization implicit,PolkitDetails *out_details);
GObject +----PolkitBackendAuthority +----PolkitBackendInteractiveAuthority +----PolkitBackendLocalAuthority
An subclass of PolkitBackendAuthority that supports interaction with authentication agents.
typedef struct _PolkitBackendInteractiveAuthority PolkitBackendInteractiveAuthority;
The PolkitBackendInteractiveAuthority struct should not be accessed directly.
struct PolkitBackendInteractiveAuthorityClass {
  PolkitBackendAuthorityClass parent_class;
  /* VTable */
  GList *                     (*get_admin_identities)          (PolkitBackendInteractiveAuthority *authority,
                                                                PolkitSubject                     *caller,
                                                                PolkitSubject                     *subject,
                                                                PolkitIdentity                    *user_for_subject,
                                                                const gchar                       *action_id,
                                                                PolkitDetails                     *details);
  PolkitImplicitAuthorization (*check_authorization_sync) (PolkitBackendInteractiveAuthority *authority,
                                                           PolkitSubject                     *caller,
                                                           PolkitSubject                     *subject,
                                                           PolkitIdentity                    *user_for_subject,
                                                           gboolean                           subject_is_local,
                                                           gboolean                           subject_is_active,
                                                           const gchar                       *action_id,
                                                           PolkitDetails                     *details,
                                                           PolkitImplicitAuthorization        implicit,
                                                           PolkitDetails                     *out_details);
};
Class structure for PolkitBackendInteractiveAuthority.
| PolkitBackendAuthorityClass  | The parent class. | 
| Returns list of identities for administrator authentication or NULLto use the default
implementation. Seepolkit_backend_interactive_authority_get_admin_identities()for details. | |
| Checks for an authorization or NULLto use the default implementation.
Seepolkit_backend_interactive_authority_check_authorization_sync()for details. | 
GList * polkit_backend_interactive_authority_get_admin_identities (PolkitBackendInteractiveAuthority *authority,PolkitSubject *caller,PolkitSubject *subject,PolkitIdentity *user_for_subject,const gchar *action_id,PolkitDetails *details);
Gets a list of identities to use for administrator authentication.
The default implementation returns a list with a single element for the super user.
| 
 | A PolkitBackendInteractiveAuthority. | 
| 
 | The subject that is inquiring whether subjectis authorized. | 
| 
 | The subject we are about to authenticate for. | 
| 
 | The user of the subject we are about to authenticate for. | 
| 
 | The action we are about to authenticate for. | 
| 
 | Details about the action. | 
| Returns : | A list of PolkitIdentity objects. Free each element g_object_unref(), then free the list withg_list_free(). | 
PolkitImplicitAuthorization polkit_backend_interactive_authority_check_authorization_sync (PolkitBackendInteractiveAuthority *authority,PolkitSubject *caller,PolkitSubject *subject,PolkitIdentity *user_for_subject,gboolean subject_is_local,gboolean subject_is_active,const gchar *action_id,PolkitDetails *details,PolkitImplicitAuthorization implicit,PolkitDetails *out_details);
Checks whether subject is authorized to perform the action
specified by action_id and details. The implementation may
append key/value pairs to out_details to return extra information
to caller.
The default implementation of this method simply returns implicit.
| 
 | A PolkitBackendInteractiveAuthority. | 
| 
 | The subject that is inquiring whether subjectis authorized. | 
| 
 | The subject we are checking an authorization for. | 
| 
 | The user of the subject we are checking an authorization for. | 
| 
 | TRUEif the session forsubjectis local. | 
| 
 | TRUEif the session forsubjectis active. | 
| 
 | The action we are checking an authorization for. | 
| 
 | Details about the action. | 
| 
 | A PolkitImplicitAuthorization value computed from the policy file and subject. | 
| 
 | A PolkitDetails object that will be return to caller. | 
| Returns : | A PolkitImplicitAuthorization that specifies if the subject is authorized or whether authentication is required. |