Class SecureHashProcessor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean compare​(char[] inputValue, java.lang.String storedValue)
      compare the plain char array against the hash value
      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

      • SecureHashProcessor

        public SecureHashProcessor​(SensitiveDataCodec<java.lang.String> codec)
    • 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 storedValue)
        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
        storedValue - the existing hash value
        Returns:
        true if the char array matches the hash value, otherwise false.