Class LazyHashProcessor
- java.lang.Object
-
- org.apache.activemq.artemis.utils.LazyHashProcessor
-
- All Implemented Interfaces:
HashProcessor
public abstract class LazyHashProcessor extends java.lang.Object implements HashProcessor
-
-
Constructor Summary
Constructors Constructor Description LazyHashProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancompare(char[] inputValue, java.lang.String storedHash)compare the plain char array against the hash valueprotected abstract HashProcessorcreateHashProcessor()java.lang.Stringhash(java.lang.String plainText)produce hash text from plain text
-
-
-
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 storedHash)Description copied from interface:HashProcessorcompare the plain char array against the hash value- Specified by:
comparein interfaceHashProcessor- Parameters:
inputValue- value of the plain textstoredHash- 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
-
-