Interface DBusAuthObserver.OnAllowMechanism

Enclosing class:
DBusAuthObserver
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface DBusAuthObserver.OnAllowMechanism
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onAllowMechanism(Str mechanism)
    Emitted to check if @mechanism is allowed to be used.
  • Method Details

    • onAllowMechanism

      boolean onAllowMechanism(@Nonnull Str mechanism)
      Emitted to check if @mechanism is allowed to be used.
      Parameters:
      mechanism - The name of the mechanism, e.g. `DBUS_COOKIE_SHA1`.
      Returns:
      %TRUE if @mechanism can be used to authenticate the other peer, %FALSE if not.