Session


Object Hierarchy:

Object hierarchy for Session

Description:

[ CCode ( type_id = "polkit_agent_session_get_type ()" ) ]
public class Session : Object

The Session class is an abstraction used for interacting with the native authentication system (for example PAM) for obtaining authorizations.

This class is typically used together with instances that are derived from the Listener abstract base class.

To perform the actual authentication, Session uses a trusted suid helper. The authentication conversation is done through a pipe. This is transparent; the user only need to handle the request, show_info, show_error and completed signals and invoke response in response to requests.

If the user successfully authenticates, the authentication helper will invoke a method on the PolicyKit daemon (see authentication_agent_response_sync ) with the given cookie. Upon receiving a positive response from the PolicyKit daemon (via the authentication helper), the completed signal will be emitted with the gained_authorization paramter set to true.

If the user is unable to authenticate, the completed signal will be emitted with the gained_authorization paramter set to false.


Namespace: PolkitAgent
Package: polkit-agent-1

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members: