Enum Class Argon2Password.Encoder.HashType

java.lang.Object
java.lang.Enum<Argon2Password.Encoder.HashType>
io.inverno.mod.security.authentication.password.Argon2Password.Encoder.HashType
All Implemented Interfaces:
Serializable, Comparable<Argon2Password.Encoder.HashType>, Constable
Enclosing class:
Argon2Password.Encoder

public static enum Argon2Password.Encoder.HashType extends Enum<Argon2Password.Encoder.HashType>

The type of hash.

Since:
1.5
Author:
Jeremy Kuhn
  • Enum Constant Details

  • Method Details

    • values

      public static Argon2Password.Encoder.HashType[] 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 Argon2Password.Encoder.HashType 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
    • getId

      public int getId()

      Returns the hash type id.

      Returns:
      the hash type id
    • getName

      public String getName()

      Returns the hash type name.

      Returns:
      the name
    • fromId

      public static Argon2Password.Encoder.HashType fromId(int id) throws IllegalArgumentException

      Returns the hash type corresponding to the specified id.

      Parameters:
      id - an hash type id
      Returns:
      an hash type
      Throws:
      IllegalArgumentException - if the specified id is not supported
    • fromName

      public static Argon2Password.Encoder.HashType fromName(String name) throws IllegalArgumentException

      Returns the hash type corresponding to the specified name.

      Parameters:
      name - an hash type name
      Returns:
      an hash type
      Throws:
      IllegalArgumentException - if the specified name is not supported