ModeShape/modeshape — pull request #245 by rhauch (2011-12-16 15:02:08+00:00)
Title: MODE-1324 Added methods to obtain SHA-1 has for a Binary value

Made the `org.modeshape.jcr.api.Binary` interface no longer deprecated (we're not using it again in ModeShape 3.x, too), and added two methods for obtaining the SHA-1 hash of the value's content. One of the methods returns the byte[] form of the hash, while the other returns the hexadecimal string form of the same hash.

All unit and integration tests pass.

Note this change only needs to be made to the 2.x codebase in 'master', since these changes reflect existing code in the 3.x branch.