Interface HashProcessor

All Known Implementing Classes:
LazyHashProcessor, NoHashProcessor, SecureHashProcessor

public interface HashProcessor
Used to process Hash text for passwords
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    compare(char[] inputValue, String storedHash)
    compare the plain char array against the hash value
    hash(String plainText)
    produce hash text from plain text
  • Method Details

    • hash

      String hash(String plainText) throws Exception
      produce hash text from plain text
      Parameters:
      plainText - Plain text input
      Returns:
      the Hash value of the input plain text
      Throws:
      Exception
    • compare

      boolean compare(char[] inputValue, String storedHash)
      compare the plain char array against the hash value
      Parameters:
      inputValue - value of the plain text
      storedHash - the existing hash value
      Returns:
      true if the char array matches the hash value, otherwise false.