Interface PwdHashingStrategy

All Known Implementing Classes:
DefaultPwdHashingStrategyImpl

public interface PwdHashingStrategy
This class provides functionality of hashing the password using the salt value.
Author:
Infosys Equinox
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    checkPassword(String plainPassword, String hashedPassword, String psalt)
    Used to check the hashed password with salt value.
    hashPassword(String password, String psalt)
    Used for hashing password with salt value.
  • Method Details

    • hashPassword

      String hashPassword(String password, String psalt)
      Used for hashing password with salt value.
      Parameters:
      password - Password of the user which is used for hashing.
      psalt - Indicates the salt value of the user which is used for hashing.
      Returns:
      The hashed password.
    • checkPassword

      boolean checkPassword(String plainPassword, String hashedPassword, String psalt)
      Used to check the hashed password with salt value.
      Parameters:
      plainPassword - Indicates the password of the user which is used to check the hashed password with salt value.
      hashedPassword - Indicates the hashedPassword of the user which is used for checking the password.
      psalt - Indicates the salt value of the user which is used for checking the password.
      Returns:
      True, if it is successful