public interface ByteDigester
Common interface for all digesters which receive a byte array message and return a byte array digest.
For a default implementation, see StandardByteDigester
.
Modifier and Type | Method and Description |
---|---|
byte[] |
digest(byte[] message)
Create a digest of the input message.
|
boolean |
matches(byte[] message,
byte[] digest)
Check whether a message matches a digest, managing aspects like
salt, hashing iterations, etc.
|
byte[] digest(byte[] message)
Create a digest of the input message.
message
- the message to be digestedboolean matches(byte[] message, byte[] 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 © 2017 JBoss by Red Hat. All rights reserved.