T- Type of output (e.g. byte, string) produced by hash bean.
public interface HashBean<T>
T hash(Object... data) throws CryptoException, StreamException
data- Data to hash. Callers should expect support for at least the following types:
Resource. Unless otherwise noted, character data is processed in the
UTF-8character set; if another character set is desired, the caller should convert to
byteand provide the resulting bytes.
CryptoException- on hash computation errors.
StreamException- on stream IO errors.
boolean compare(T hash, Object... data) throws CryptoException, StreamException
Copyright © 2003-2020 Virginia Tech. All Rights Reserved.