Enum Class DBusConnectionFlags

java.lang.Object
java.lang.Enum<DBusConnectionFlags>
org.gnome.gio.DBusConnectionFlags
All Implemented Interfaces:
Serializable, Comparable<DBusConnectionFlags>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum DBusConnectionFlags extends Enum<DBusConnectionFlags> implements Enumeration
Flags used when creating a new GDBusConnection.
Since:
2.26
  • Enum Constant Details

    • NONE

      public static final DBusConnectionFlags NONE
      No flags set.
    • AUTHENTICATION_CLIENT

      public static final DBusConnectionFlags AUTHENTICATION_CLIENT
      Perform authentication against server.
    • AUTHENTICATION_SERVER

      public static final DBusConnectionFlags AUTHENTICATION_SERVER
      Perform authentication against client.
    • AUTHENTICATION_ALLOW_ANONYMOUS

      public static final DBusConnectionFlags AUTHENTICATION_ALLOW_ANONYMOUS
      When authenticating as a server, allow the anonymous authentication method.
    • MESSAGE_BUS_CONNECTION

      public static final DBusConnectionFlags MESSAGE_BUS_CONNECTION
      Pass this flag if connecting to a peer that is a message bus. This means that the Hello() method will be invoked as part of the connection setup.
    • DELAY_MESSAGE_PROCESSING

      public static final DBusConnectionFlags DELAY_MESSAGE_PROCESSING
      If set, processing of D-Bus messages is delayed until g_dbus_connection_start_message_processing() is called.
    • AUTHENTICATION_REQUIRE_SAME_USER

      public static final DBusConnectionFlags AUTHENTICATION_REQUIRE_SAME_USER
      When authenticating as a server, require the UID of the peer to be the same as the UID of the server. (Since: 2.68)
    • CROSS_NAMESPACE

      public static final DBusConnectionFlags CROSS_NAMESPACE
      When authenticating, try to use protocols that work across a Linux user namespace boundary, even if this reduces interoperability with older D-Bus implementations. This currently affects client-side EXTERNAL authentication, for which this flag makes connections to a server in another user namespace succeed, but causes a deadlock when connecting to a GDBus server older than 2.73.3. Since: 2.74
  • Method Details

    • values

      public static DBusConnectionFlags[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DBusConnectionFlags valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Set<DBusConnectionFlags> of(int flags)
      Create a new EnumSet<DBusConnectionFlags> for the provided bitfield
      Parameters:
      flags - the DBusConnectionFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<DBusConnectionFlags> of(MemorySegment address)
      Create a new EnumSet<DBusConnectionFlags> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the DBusConnectionFlags class.
      Returns:
      the GType