Class PasswordHash
- java.lang.Object
-
- com.helger.security.password.hash.PasswordHash
-
@Immutable public final class PasswordHash extends Object
This class combines password hash and the used algorithm.- Author:
- Philip Helger
-
-
Field Summary
Fields Modifier and Type Field Description static intALGORITHM_NAME_MAX_LENGTHThe maximum length of the algorithm name (for database reasons)
-
Constructor Summary
Constructors Constructor Description PasswordHash(String sAlgorithmName, IPasswordSalt aSalt, String sPasswordHashValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetAlgorithmName()StringgetPasswordHashValue()IPasswordSaltgetSalt()StringgetSaltAsString()inthashCode()booleanhasSalt()StringtoString()
-
-
-
Field Detail
-
ALGORITHM_NAME_MAX_LENGTH
public static final int ALGORITHM_NAME_MAX_LENGTH
The maximum length of the algorithm name (for database reasons)- Since:
- 10.1.7
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasSalt
public boolean hasSalt()
-
getSalt
@Nullable public IPasswordSalt getSalt()
-
-