DBusAuthObserver

Added in version 2.26.

class DBusAuthObserver(**properties: Any)

Superclasses: Object

Constructors:

DBusAuthObserver(**properties)
new() -> Gio.DBusAuthObserver

Constructors

class DBusAuthObserver
classmethod new() DBusAuthObserver

Creates a new DBusAuthObserver object.

Added in version 2.26.

Methods

class DBusAuthObserver
allow_mechanism(mechanism: str) bool

Emits the DBusAuthObserver::allow-mechanism signal on observer.

Added in version 2.34.

Parameters:

mechanism – The name of the mechanism, e.g. DBUS_COOKIE_SHA1.

authorize_authenticated_peer(stream: IOStream, credentials: Credentials | None = None) bool

Emits the DBusAuthObserver::authorize-authenticated-peer signal on observer.

Added in version 2.26.

Parameters:

Signals

class DBusAuthObserver.signals
allow_mechanism(mechanism: str) bool

Emitted to check if mechanism is allowed to be used.

Added in version 2.34.

Parameters:

mechanism – The name of the mechanism, e.g. DBUS_COOKIE_SHA1.

authorize_authenticated_peer(stream: IOStream, credentials: Credentials | None = None) bool

Emitted to check if a peer that is successfully authenticated is authorized.

Added in version 2.26.

Parameters: