ostore.util
Class SecureHashBuffer
java.lang.Object
|
+--ostore.util.OutputBufferImpl
|
+--ostore.util.SecureHashBuffer
- All Implemented Interfaces:
- OutputBuffer
- Direct Known Subclasses:
- SHA1HashBuffer
- public abstract class SecureHashBuffer
- extends OutputBufferImpl
A MessageDigest-like interface for building
SecureHashes.
Users should call add for each object to include in the
SecureHash and then call toHash once.
Invocations of toHash reset the
SecureHashBuffer, so do not attempt to produce
intermediate hashes with a single buffer.
- Version:
- $Id: SecureHashBuffer.java,v 1.10 2002/07/20 19:18:15 srhea Exp $
- Author:
- Dennis Geels
- See Also:
QuickSerializable,
MessageDigest
|
Method Summary |
abstract SecureHash |
toHash()
Computes and returns the digest of all inputs. |
| Methods inherited from class ostore.util.OutputBufferImpl |
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecureHashBuffer
public SecureHashBuffer()
toHash
public abstract SecureHash toHash()
- Computes and returns the digest of all inputs. Also resets internal
state, so do not attempt to produce intermediate hashes by
calling this method prematurely.