Class SimpleHash

java.lang.Object
org.apache.shiro.lang.codec.CodecSupport
org.apache.shiro.crypto.hash.SimpleHash
All Implemented Interfaces:
Serializable, Hash, org.apache.shiro.lang.util.ByteSource
Direct Known Subclasses:
Sha256Hash, Sha384Hash, Sha512Hash

public class SimpleHash extends org.apache.shiro.lang.codec.CodecSupport implements Hash, Serializable
A Hash implementation that allows any MessageDigest algorithm name to be used. This class is a less type-safe variant than the other AbstractHash subclasses (e.g. Sha512Hash, etc.), but it does allow for any algorithm name to be specified in case the other subclass implementations do not represent an algorithm that you may want to use.

As of Shiro 1.1, this class effectively replaces the (now-deprecated) AbstractHash class. It subclasses AbstractHash only to retain backwards-compatibility.

Since:
1.1
See Also: