public interface StringDigester
Common interface for all digesters which receive a String message and return a String digest.
For a default implementation, see StandardStringDigester
.
Modifier and Type | Method and Description |
---|---|
String |
digest(String message)
Create a digest of the input message.
|
boolean |
matches(String message,
String digest)
Check whether a message matches a digest, managing aspects like
salt, hashing iterations, etc.
|
String digest(String message)
Create a digest of the input message.
message
- the message to be digestedboolean matches(String message, String digest)
Check whether a message matches a digest, managing aspects like salt, hashing iterations, etc. (if applicable).
message
- the message to checkdigest
- the digest to checkCopyright © 2016 JBoss by Red Hat. All rights reserved.