Interface Argon2PasswordEncoderConfiguration

All Known Implementing Classes:
Argon2PasswordEncoderConfigurationProperties

@Internal public interface Argon2PasswordEncoderConfiguration
Configuration of the Argon2id PasswordEncoder.

The memory, iterations, parallelism, salt length and hash length apply to newly encoded passwords. An encoded password is always verified with the parameters it was created with, as long as they do not exceed the maximum memory and maximum iterations.

Since:
5.5.0
  • Method Details

    • getMemory

      int getMemory()
      Returns:
      the memory cost, in kibibytes, used to encode passwords
    • getIterations

      int getIterations()
      Returns:
      the number of iterations used to encode passwords
    • getParallelism

      int getParallelism()
      Returns:
      the degree of parallelism used to encode passwords
    • getSaltLength

      int getSaltLength()
      Returns:
      the length of the generated salt, in bytes
    • getHashLength

      int getHashLength()
      Returns:
      the length of the generated hash, in bytes
    • getMaxMemory

      int getMaxMemory()
      Returns:
      the highest memory cost, in kibibytes, accepted when verifying an encoded password
    • getMaxIterations

      int getMaxIterations()
      Returns:
      the highest number of iterations accepted when verifying an encoded password