Package com.jms.socialmedia.password
Class BcryptPasswordService
- java.lang.Object
-
- com.jms.socialmedia.password.BcryptPasswordService
-
- All Implemented Interfaces:
PasswordService
public class BcryptPasswordService extends Object implements PasswordService
-
-
Constructor Summary
Constructors Constructor Description BcryptPasswordService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkPassword(String password, String hashedPassword)
String
encryptPassword(String password)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.jms.socialmedia.password.PasswordService
checkPassword, checkPassword
-
-
-
-
Method Detail
-
encryptPassword
public String encryptPassword(String password)
- Specified by:
encryptPassword
in interfacePasswordService
-
checkPassword
public boolean checkPassword(String password, String hashedPassword)
- Specified by:
checkPassword
in interfacePasswordService
-
-