Class Utils.Sha256Digest

java.lang.Object
org.forgerock.openig.tools.Utils.Sha256Digest
All Implemented Interfaces:
Utils.Digest
Enclosing class:
Utils

public static final class Utils.Sha256Digest extends Object implements Utils.Digest
SHA-256 implementation of the Utils.Digest interface.
  • Field Details

    • INSTANCE

      public static final Utils.Digest INSTANCE
      Singleton instance of the SHA-256 digest.
  • Constructor Details

    • Sha256Digest

      public Sha256Digest()
  • Method Details

    • compute

      public String compute(String token)
      Description copied from interface: Utils.Digest
      Computes the hash of the given value.
      Specified by:
      compute in interface Utils.Digest
      Parameters:
      token - The value to hash.
      Returns:
      The base64 encoded String hash of the value.