public class SecureHashProcessor extends Object implements HashProcessor
Constructor and Description |
---|
SecureHashProcessor(DefaultSensitiveStringCodec codec) |
Modifier and Type | Method and Description |
---|---|
boolean |
compare(char[] inputValue,
String storedValue)
compare the plain char array against the hash value
|
String |
hash(String plainText)
produce hash text from plain text
|
public SecureHashProcessor(DefaultSensitiveStringCodec codec)
public String hash(String plainText) throws Exception
HashProcessor
hash
in interface HashProcessor
plainText
- Plain text inputException
public boolean compare(char[] inputValue, String storedValue)
HashProcessor
compare
in interface HashProcessor
inputValue
- value of the plain textstoredValue
- the existing hash valueCopyright © 2018 JBoss by Red Hat. All rights reserved.