Class HexFormat
- java.lang.Object
-
- org.apache.shiro.crypto.hash.format.HexFormat
-
- All Implemented Interfaces:
HashFormat
public class HexFormat extends Object implements HashFormat
HashFormat
that outputs only The hash's digest bytes in hex format. It does not print out anything else (salt, iterations, etc). This implementation is mostly provided as a convenience for command-line hashing.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description HexFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(Hash hash)
Returnshash != null ? hash.toHex() : null
.
-