Class ScryptParams

java.lang.Object
pl.edu.icm.unity.stdext.credential.pass.ScryptParams

public class ScryptParams extends Object
Parameters governing Scrypt algorithm. Allows to be converted to Map, useful as copy of parameters needs to be stored with particular hashed password information.
Author:
K. Benedyczak
  • Field Details

  • Constructor Details

    • ScryptParams

      public ScryptParams(Map<String,Object> params)
    • ScryptParams

      public ScryptParams(int workFactor, int blockSize, int parallelization, int length)
    • ScryptParams

      public ScryptParams()
    • ScryptParams

      public ScryptParams(int workFactor)
  • Method Details

    • sanitize

      public void sanitize()
    • getWorkFactor

      public int getWorkFactor()
    • getBlockSize

      public int getBlockSize()
    • getParallelization

      public int getParallelization()
    • getLength

      public int getLength()
    • hasStrongerRequirementsThen

      public boolean hasStrongerRequirementsThen(ScryptParams other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toMap

      public Map<String,Object> toMap()