ParsableHashFormat

A {@code ParsableHashFormat} is able to parse a formatted string and convert it into a {@link Hash} instance. <p/> This interface exists to represent {@code HashFormat}s that can offer two-way conversion (Hash -&gt; string, string -&gt; Hash) capabilities. Some HashFormats, such as many {@link ModularCryptFormat}s (like Unix Crypt(3)) only support one way conversion and therefore wouldn't implement this interface.

@see Shiro1CryptFormat

interface ParsableHashFormat : HashFormat {}

Members

Functions

parse
Hash parse(string formatted)

Parses the specified formatted string and returns the corresponding Hash instance.

Inherited Members

From HashFormat

format
string format(Hash hash)

Returns a formatted string representing the specified Hash instance.

Meta