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 Summary
Fields Modifier and Type Field Description static intMAX_WORK_FACTORstatic intMIN_WORK_FACTOR
-
Constructor Summary
Constructors Constructor Description ScryptParams()ScryptParams(int workFactor)ScryptParams(int workFactor, int blockSize, int parallelization, int length)ScryptParams(Map<String,Object> params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)intgetBlockSize()intgetLength()intgetParallelization()intgetWorkFactor()inthashCode()booleanhasStrongerRequirementsThen(ScryptParams other)voidsanitize()Map<String,Object>toMap()
-
-
-
Field Detail
-
MIN_WORK_FACTOR
public static final int MIN_WORK_FACTOR
- See Also:
- Constant Field Values
-
MAX_WORK_FACTOR
public static final int MAX_WORK_FACTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
-