Package org.forgerock.openig.tools
Class Utils.Sha256Digest
java.lang.Object
org.forgerock.openig.tools.Utils.Sha256Digest
- All Implemented Interfaces:
Utils.Digest
- Enclosing class:
- Utils
SHA-256 implementation of the
Utils.Digest
interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Utils.Digest
Singleton instance of the SHA-256 digest. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
Singleton instance of the SHA-256 digest.
-
-
Constructor Details
-
Sha256Digest
public Sha256Digest()
-
-
Method Details
-
compute
Description copied from interface:Utils.Digest
Computes the hash of the given value.- Specified by:
compute
in interfaceUtils.Digest
- Parameters:
token
- The value to hash.- Returns:
- The base64 encoded String hash of the value.
-