Healthcare Portal
 
Loading...
Searching...
No Matches
com.hospital.portal.service.PasswordService Class Reference

Public Member Functions

 PasswordService ()
 Constructor of the PasswordService class using a BCrypt Password Encoder.
 
String hashPassword (String plainPassword)
 Transforms the plain text password to a secure password, hashing it.
 
boolean verifyPassword (String plainPassword, String hashedPassword)
 Verifies the password to see if it is equal to the hashed one.
 

Constructor & Destructor Documentation

◆ PasswordService()

com.hospital.portal.service.PasswordService.PasswordService ( )
inline

Constructor of the PasswordService class using a BCrypt Password Encoder.

Member Function Documentation

◆ hashPassword()

String com.hospital.portal.service.PasswordService.hashPassword ( String  plainPassword)
inline

Transforms the plain text password to a secure password, hashing it.

Parameters
Plainpassword
Returns
Hashed password

◆ verifyPassword()

boolean com.hospital.portal.service.PasswordService.verifyPassword ( String  plainPassword,
String  hashedPassword 
)
inline

Verifies the password to see if it is equal to the hashed one.

Parameters
Plainpassword
Hashedpassword

The documentation for this class was generated from the following file: