Class SecureHashProcessor

java.lang.Object
org.apache.activemq.artemis.utils.SecureHashProcessor
All Implemented Interfaces:
HashProcessor

public class SecureHashProcessor extends Object implements HashProcessor
  • Constructor Details

  • Method Details

    • 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 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.