SimpleHash.this

Creates an new instance with only its {@code algorithmName} set - no hashing is performed. <p/> Because all other constructors in this class hash the {@code source} constructor argument, this constructor is useful in scenarios when you have a byte array that you know is already hashed and just want to set the bytes in their raw form directly on an instance. After using this constructor, you can then immediately call {@link #setBytes setBytes} to have a fully-initialized instance. <p/> <b>N.B.</b>The algorithm identified by the {@code algorithmName} parameter must be available on the JVM. If it is not, a {@link UnknownAlgorithmException} will be thrown when the hash is performed (not at instantiation).

@param algorithmName the {@link java.security.MessageDigest MessageDigest} algorithm name to use when performing the hash. @see UnknownAlgorithmException

Meta