Details
Description
This filter stream would initialize a MessageDigest instance, will keep updating it while the input stream is read, and will prepare a hash on close().
Will be useful when the attachments are uploaded and copied from InputStreams, with these hashes used as ETags or primary keys.
Can also be useful in some of WebCrypro/JOSE scenarios