DBusAuthObserver
Added in version 2.26.
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 onobserver
.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 onobserver
.Added in version 2.26.
- Parameters:
stream – A
IOStream
for theDBusConnection
.credentials – Credentials received from the peer or
None
.
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:
stream – A
IOStream
for theDBusConnection
.credentials – Credentials received from the peer or
None
.