Enum Class PasswordMode

java.lang.Object
java.lang.Enum<PasswordMode>
com.smartfoxserver.components.signup.PasswordMode
All Implemented Interfaces:
Serializable, Comparable<PasswordMode>, Constable

public enum PasswordMode extends Enum<PasswordMode>
Indicates how the password should be stored in the database
See Also:
  • Enum Constant Details

    • PLAIN_TEXT

      public static final PasswordMode PLAIN_TEXT
      The password will be stored as plain text in the assigned database field.
    • SHA256

      public static final PasswordMode SHA256
      The password will be stored as MD5 hash in the database. Please make sure that the password database field is 32 character long. Also at login time you will need to pre-encode the password via MD5 on the client side.
  • Method Details

    • values

      public static PasswordMode[] 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 PasswordMode 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