Class NoHashProcessor

  • All Implemented Interfaces:
    HashProcessor

    public class NoHashProcessor
    extends Object
    implements HashProcessor
    A hash processor that just does plain text comparison
    • Constructor Detail

      • NoHashProcessor

        public NoHashProcessor()
    • Method Detail

      • hash

        public String hash​(String plainText)
                    throws Exception
        Description copied from interface: HashProcessor
        produce hash text from plain text
        Specified by:
        hash in interface HashProcessor
        Parameters:
        plainText - Plain text input
        Returns:
        the Hash value of the input plain text
        Throws:
        Exception
      • compare

        public boolean compare​(char[] inputValue,
                               String storedHash)
        Description copied from interface: HashProcessor
        compare the plain char array against the hash value
        Specified by:
        compare in interface HashProcessor
        Parameters:
        inputValue - value of the plain text
        storedHash - the existing hash value
        Returns:
        true if the char array matches the hash value, otherwise false.