Interface HashProcessor
-
- All Known Implementing Classes:
LazyHashProcessor,NoHashProcessor,SecureHashProcessor
public interface HashProcessorUsed to process Hash text for passwords
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancompare(char[] inputValue, java.lang.String storedHash)compare the plain char array against the hash valuejava.lang.Stringhash(java.lang.String plainText)produce hash text from plain text
-
-
-
Method Detail
-
hash
java.lang.String hash(java.lang.String plainText) throws java.lang.Exceptionproduce hash text from plain text- Parameters:
plainText- Plain text input- Returns:
- the Hash value of the input plain text
- Throws:
java.lang.Exception
-
compare
boolean compare(char[] inputValue, java.lang.String storedHash)compare the plain char array against the hash value- Parameters:
inputValue- value of the plain textstoredHash- the existing hash value- Returns:
- true if the char array matches the hash value, otherwise false.
-
-