Interface ParsableHashFormat
-
- All Superinterfaces:
HashFormat
- All Known Implementing Classes:
Shiro1CryptFormat
public interface ParsableHashFormat extends HashFormat
AParsableHashFormat
is able to parse a formatted string and convert it into aHash
instance. This interface exists to representHashFormat
s that can offer two-way conversion (Hash -> String, String -> Hash) capabilities. Some HashFormats, such as manyModularCryptFormat
s (like Unix Crypt(3)) only support one way conversion and therefore wouldn't implement this interface.- Since:
- 1.2
- See Also:
Shiro1CryptFormat
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Hash
parse(String formatted)
Parses the specified formatted string and returns the corresponding Hash instance.-
Methods inherited from interface org.apache.shiro.crypto.hash.format.HashFormat
format
-
-