Class Argon2HashProvider

java.lang.Object
org.apache.shiro.crypto.support.hashes.argon2.Argon2HashProvider
All Implemented Interfaces:
org.apache.shiro.crypto.hash.HashSpi

public class Argon2HashProvider extends Object implements org.apache.shiro.crypto.hash.HashSpi
A HashProvider for the Argon2 hash algorithm.

This class is intended to be used by the HashProvider class from Shiro. However, this class can also be used to created instances of the Argon2 hash manually.

Furthermore, there is a nested Argon2HashProvider.Parameters class which provides names for the keys used in the parameters map of the HashRequest class.

Since:
2.0
  • Constructor Details

  • Method Details

    • getImplementedAlgorithms

      Specified by:
      getImplementedAlgorithms in interface org.apache.shiro.crypto.hash.HashSpi
    • fromString

      public org.apache.shiro.crypto.support.hashes.argon2.Argon2Hash fromString(String format)
      Specified by:
      fromString in interface org.apache.shiro.crypto.hash.HashSpi
    • newHashFactory

      public org.apache.shiro.crypto.hash.HashSpi.HashFactory newHashFactory(Random random)
      Specified by:
      newHashFactory in interface org.apache.shiro.crypto.hash.HashSpi