Enum Class MFAUser.Hashing

java.lang.Object
java.lang.Enum<MFAUser.Hashing>
com.iizix.server.user.mfa.MFAUser.Hashing
All Implemented Interfaces:
Serializable, Comparable<MFAUser.Hashing>, Constable
Enclosing class:
MFAUser

public static enum MFAUser.Hashing extends Enum<MFAUser.Hashing>
Enum to define valid hashing algorithms.
  • Enum Constant Details

    • DEFAULT

      public static final MFAUser.Hashing DEFAULT
      Default hashing algorithm: SHA256.
    • SHA1

      public static final MFAUser.Hashing SHA1
      A little weak, it is recommended to use a higher one.
    • SHA256

      public static final MFAUser.Hashing SHA256
      Recommended algorithm.
    • SHA512

      public static final MFAUser.Hashing SHA512
      Strong algorithm.
  • Method Details

    • values

      public static MFAUser.Hashing[] 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 MFAUser.Hashing 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