Package overit.geocall.util.password
Class BCrypt
java.lang.Object
overit.geocall.util.password.PasswordAlgo
overit.geocall.util.password.BCrypt
Class that manages the BCrypt algorithm used to store the password
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.util.password.PasswordAlgo
PasswordAlgo.Type -
Field Summary
Fields inherited from class overit.geocall.util.password.PasswordAlgo
ARGON2_BETA, BCRYPT, OPKBDF2, SCRYPT -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class overit.geocall.util.password.PasswordAlgo
getInstance
-
Constructor Details
-
BCrypt
public BCrypt()
-
-
Method Details
-
getType
Description copied from class:PasswordAlgoReturns the type of algorithm used- Specified by:
getTypein classPasswordAlgo- Returns:
- The type of algorithm used
-
generate
Description copied from class:PasswordAlgoGenerates the hashed password- Specified by:
generatein classPasswordAlgo- Parameters:
password- To hash- Returns:
- The hashed password
-
check
Description copied from class:PasswordAlgoChecks if the stored hashed password corresponds- Specified by:
checkin classPasswordAlgo- Parameters:
password- The password to checkstored- The stored password to check- Returns:
trueif the password corresponds to the stored one,falseotherwise
-
main
-