Schnittstelle DebugControllerDBus.OnAuthorize

Umschließende Klasse:
DebugControllerDBus
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface DebugControllerDBus.OnAuthorize
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
    Emitted when a D-Bus peer is trying to change the debug settings and used
    to determine if that is authorized.
  • Methodendetails

    • onAuthorize

      boolean onAuthorize(@Nonnull DBusMethodInvocation invocation)
      Emitted when a D-Bus peer is trying to change the debug settings and used
      to determine if that is authorized.

      This signal is emitted in a dedicated worker thread, so handlers are
      allowed to perform blocking I/O. This means that, for example, it is
      appropriate to call `polkit_authority_check_authorization_sync()` to check
      authorization using polkit.

      If %FALSE is returned then no further handlers are run and the request to
      change the debug settings is rejected.

      Otherwise, if %TRUE is returned, signal emission continues. If no handlers
      return %FALSE, then the debug settings are allowed to be changed.

      Signal handlers must not modify @invocation, or cause it to return a value.

      The default class handler just returns %TRUE.
      Parameter:
      invocation - A #GDBusMethodInvocation.
      Gibt zurück:
      %TRUE if the call is authorized, %FALSE otherwise.