Class LazyHashProcessor

  • All Implemented Interfaces:
    HashProcessor

    public abstract class LazyHashProcessor
    extends java.lang.Object
    implements HashProcessor
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean compare​(char[] inputValue, java.lang.String storedHash)
      compare the plain char array against the hash value
      protected abstract HashProcessor createHashProcessor()  
      java.lang.String hash​(java.lang.String plainText)
      produce hash text from plain text
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LazyHashProcessor

        public LazyHashProcessor()
    • Method Detail

      • hash

        public java.lang.String hash​(java.lang.String plainText)
                              throws java.lang.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:
        java.lang.Exception
      • compare

        public boolean compare​(char[] inputValue,
                               java.lang.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.
      • createHashProcessor

        protected abstract HashProcessor createHashProcessor()
                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception