Class Base64Format

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

@Deprecated public class Base64Format 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 Base64 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.toBase64().
      Specified by:
      format in interface HashFormat
      Parameters:
      hash - the hash instance to format into a String.
      Returns:
      hash.toBase64().
      Throws:
      NullPointerException - if hash is null.