Enum TransportBuilder.SaslAuthMode
- java.lang.Object
-
- java.lang.Enum<TransportBuilder.SaslAuthMode>
-
- org.freedesktop.dbus.connections.transports.TransportBuilder.SaslAuthMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TransportBuilder.SaslAuthMode>
- Enclosing class:
- TransportBuilder
public static enum TransportBuilder.SaslAuthMode extends java.lang.Enum<TransportBuilder.SaslAuthMode>
Represents supported SASL authentication modes.- Since:
- v4.0.0 - 2021-09-17
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTH_ANONYMOUSNo authentication (allow everyone).AUTH_COOKIEAuthentication using SHA Cookie.AUTH_EXTERNALExternal authentication (e.g.
-
Field Summary
Fields Modifier and Type Field Description private intauthMode
-
Constructor Summary
Constructors Modifier Constructor Description privateSaslAuthMode(int _authMode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAuthMode()static TransportBuilder.SaslAuthModevalueOf(java.lang.String name)Returns 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 Detail
-
AUTH_ANONYMOUS
public static final TransportBuilder.SaslAuthMode AUTH_ANONYMOUS
No authentication (allow everyone).
-
AUTH_COOKIE
public static final TransportBuilder.SaslAuthMode AUTH_COOKIE
Authentication using SHA Cookie.
-
AUTH_EXTERNAL
public static final TransportBuilder.SaslAuthMode AUTH_EXTERNAL
External authentication (e.g. by user ID).
-
-
Method Detail
-
values
public static TransportBuilder.SaslAuthMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TransportBuilder.SaslAuthMode c : TransportBuilder.SaslAuthMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransportBuilder.SaslAuthMode valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getAuthMode
public int getAuthMode()
-
-