Class None


public class None extends PasswordAlgo
Class that manages the None algorithm used to store the password. This means that the password will be not hashed and stored as it is.
  • Constructor Details

    • None

      public None()
  • Method Details

    • getType

      public PasswordAlgo.Type getType()
      Description copied from class: PasswordAlgo
      Returns the type of algorithm used
      Specified by:
      getType in class PasswordAlgo
      Returns:
      The type of algorithm used
    • generate

      public String generate(String password)
      Description copied from class: PasswordAlgo
      Generates the hashed password
      Specified by:
      generate in class PasswordAlgo
      Parameters:
      password - To hash
      Returns:
      The hashed password
    • check

      public boolean check(String password, String stored)
      Description copied from class: PasswordAlgo
      Checks if the stored hashed password corresponds
      Specified by:
      check in class PasswordAlgo
      Parameters:
      password - The password to check
      stored - The stored password to check
      Returns:
      true if the password corresponds to the stored one, false otherwise