Class SecureHashProcessor
- java.lang.Object
-
- org.apache.activemq.artemis.utils.SecureHashProcessor
-
- All Implemented Interfaces:
HashProcessor
public class SecureHashProcessor extends java.lang.Object implements HashProcessor
-
-
Constructor Summary
Constructors Constructor Description SecureHashProcessor(SensitiveDataCodec<java.lang.String> codec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancompare(char[] inputValue, java.lang.String storedValue)compare the plain char array against the hash valuejava.lang.Stringhash(java.lang.String plainText)produce hash text from plain text
-
-
-
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.ExceptionDescription copied from interface:HashProcessorproduce hash text from plain text- Specified by:
hashin interfaceHashProcessor- 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:HashProcessorcompare the plain char array against the hash value- Specified by:
comparein interfaceHashProcessor- Parameters:
inputValue- value of the plain textstoredValue- the existing hash value- Returns:
- true if the char array matches the hash value, otherwise false.
-
-