Class HexFormat

java.lang.Object
org.apache.shiro.crypto.hash.format.HexFormat
All Implemented Interfaces:
HashFormat

@Deprecated public class HexFormat extends Object implements HashFormat
Deprecated.
will throw exceptions in 2.1.0, to be removed in 2.2.0
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 Details

  • Method Details

    • format

      public String format(Hash hash)
      Deprecated.
      Returns hash.toHex().
      Specified by:
      format in interface HashFormat
      Parameters:
      hash - the hash instance to format into a String.
      Returns:
      hash.toHex().
      Throws:
      NullPointerException - if given parameter hash is null.