Polkit.TemporaryAuthorization¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
  | 
|
  | 
|
Virtual Methods¶
- Inherited:
 
Properties¶
None
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class Polkit.TemporaryAuthorization(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Object used to describe a temporary authorization.
- get_action_id()¶
 - Returns:
 A string owned by self. Do not free.
- Return type:
 
Gets the action that self is for.
- get_id()¶
 - Returns:
 A string owned by self. Do not free.
- Return type:
 
Gets the opaque identifier for self.
- get_subject()¶
 - Returns:
 A
Polkit.Subject, free withGObject.Object.unref().- Return type:
 
Gets the subject that self is for.
- get_time_expires()¶
 - Returns:
 Seconds since the Epoch Jan 1. 1970, 0:00 UTC.
- Return type:
 
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.)