Enum Class SaslAuthMechanism

java.lang.Object
java.lang.Enum<SaslAuthMechanism>
com.lucimber.dbus.connection.sasl.SaslAuthMechanism
All Implemented Interfaces:
Serializable, Comparable<SaslAuthMechanism>, Constable

public enum SaslAuthMechanism extends Enum<SaslAuthMechanism>
An enum that describes the supported authentication mechanisms.
  • Enum Constant Details

  • Method Details

    • values

      public static SaslAuthMechanism[] 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 SaslAuthMechanism 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
    • fromString

      public static SaslAuthMechanism fromString(String customName)
      Translates the custom string representation back to the corresponding enum.
      Parameters:
      customName - The custom string representation.
      Returns:
      The corresponding SaslAuthMechanism.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<SaslAuthMechanism>