Package org.gnome.gio
Enum Class DBusConnectionFlags
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<DBusConnectionFlags>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum DBusConnectionFlags
extends Enum<DBusConnectionFlags>
implements Enumeration
Flags used when creating a new
GDBusConnection
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWhen authenticating as a server, allow the anonymous authentication method.Perform authentication against server.When authenticating as a server, require the UID of the peer to be the same as the UID of the server.Perform authentication against client.When authenticating, try to use protocols that work across a Linux user namespace boundary, even if this reduces interoperability with older D-Bus implementations.If set, processing of D-Bus messages is delayed until g_dbus_connection_start_message_processing() is called.Pass this flag if connecting to a peer that is a message bus.No flags set. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the DBusConnectionFlags classint
getValue()
Get the numeric value of this enumstatic DBusConnectionFlags
of
(int value) Create a new DBusConnectionFlags for the provided valuestatic DBusConnectionFlags
Returns the enum constant of this class with the specified name.static DBusConnectionFlags[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No flags set. -
AUTHENTICATION_CLIENT
Perform authentication against server. -
AUTHENTICATION_SERVER
Perform authentication against client. -
AUTHENTICATION_ALLOW_ANONYMOUS
When authenticating as a server, allow the anonymous authentication method. -
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
If set, processing of D-Bus messages is delayed until g_dbus_connection_start_message_processing() is called. -
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
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-sideEXTERNAL
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
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
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 nameNullPointerException
- if the argument is null
-
of
Create a new DBusConnectionFlags for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-