Enum TransportBuilder.SaslAuthMode
java.lang.Object
java.lang.Enum<TransportBuilder.SaslAuthMode>
org.freedesktop.dbus.connections.transports.TransportBuilder.SaslAuthMode
- All Implemented Interfaces:
Serializable,Comparable<TransportBuilder.SaslAuthMode>,java.lang.constant.Constable
- Enclosing class:
TransportBuilder
Represents supported SASL authentication modes.
- Since:
- v4.0.0 - 2021-09-17
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo authentication (allow everyone).Authentication using SHA Cookie.External authentication (e.g. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the enum constant of this type with the specified name.static TransportBuilder.SaslAuthMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AUTH_ANONYMOUS
No authentication (allow everyone). -
AUTH_COOKIE
Authentication using SHA Cookie. -
AUTH_EXTERNAL
External authentication (e.g. by user ID).
-
-
Field Details
-
authMode
private final int authMode
-
-
Constructor Details
-
SaslAuthMode
private SaslAuthMode(int _authMode)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getAuthMode
public int getAuthMode()
-