Class AbstractCryptHash

java.lang.Object
org.apache.shiro.crypto.hash.AbstractCryptHash
All Implemented Interfaces:
Serializable, Hash, org.apache.shiro.lang.util.ByteSource

public abstract class AbstractCryptHash extends Object implements Hash, Serializable
Abstract class for hashes following the posix crypt(3) format.

These implementations must contain a salt, a salt length, can format themselves to a valid String suitable for the /etc/shadow file.

It also defines the hex and base64 output by wrapping the output of formatToCryptString().

Implementation notice: Implementations should provide a static fromString() method.

Since:
2.0
See Also: