Polkit.TemporaryAuthorization

g GObject.Object GObject.Object Polkit.TemporaryAuthorization Polkit.TemporaryAuthorization GObject.Object->Polkit.TemporaryAuthorization

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_action_id ()

get_id ()

get_subject ()

get_time_expires ()

get_time_obtained ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Polkit.TemporaryAuthorization(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Polkit.TemporaryAuthorizationClass

Object used to describe a temporary authorization.

get_action_id()
Returns:

A string owned by self. Do not free.

Return type:

str

Gets the action that self is for.

get_id()
Returns:

A string owned by self. Do not free.

Return type:

str

Gets the opaque identifier for self.

get_subject()
Returns:

A Polkit.Subject, free with GObject.Object.unref().

Return type:

Polkit.Subject

Gets the subject that self is for.

get_time_expires()
Returns:

Seconds since the Epoch Jan 1. 1970, 0:00 UTC.

Return type:

int

Gets the time when self will expire.

(Note that the PolicyKit daemon is using monotonic time internally so the returned value may change if system time changes.)

get_time_obtained()
Returns:

Seconds since the Epoch Jan 1. 1970, 0:00 UTC.

Return type:

int

Gets the time when self was obtained.

(Note that the PolicyKit daemon is using monotonic time internally so the returned value may change if system time changes.)