Package io.jans.as.model.util
Class HashUtil
- java.lang.Object
-
- io.jans.as.model.util.HashUtil
-
public class HashUtil extends java.lang.Object
Hash Tool, that calculates Hash Code, using Hashing Algorithm, defined by the Signature Algorithm. I.e. Hashing Algorithm depends on the Signature Algorithm.- Version:
- December 5, 2021
- Author:
- Yuriy Zabrovarnyy, Sergey Manoylo
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getHash(java.lang.String input, SignatureAlgorithm signatureAlgorithm)
Calculates Hash Code, using Hashing Algorithm, defined by used Signature Algorithm.
-
-
-
Method Detail
-
getHash
public static java.lang.String getHash(java.lang.String input, SignatureAlgorithm signatureAlgorithm)
Calculates Hash Code, using Hashing Algorithm, defined by used Signature Algorithm.- Parameters:
input
- Input string, whose hash code is being calculated.signatureAlgorithm
- Signature Algorithm.- Returns:
- Hash Code, using algorithm, defined by used Signature Algorithm.
-
-