Package co.ecg.alpaca.toolkit.messaging
Class MessageDigestUtils
java.lang.Object
co.ecg.alpaca.toolkit.messaging.MessageDigestUtils
@Component public class MessageDigestUtils extends Object
Utility to create SHA and MD5 message digests in a format compatible with BroadWorks.
Adapted from code created by BroadSoft.
-
Constructor Summary
Constructors Constructor Description MessageDigestUtils(LibraryProperties libraryProperties)
-
Method Summary
Modifier and Type Method Description String
calculateNonce()
String
md5MessageDigest(String plainText)
String
shaMessageDigest(String plainText)
Returns a SHA1 hashed String.
-
Constructor Details
-
Method Details
-
md5MessageDigest
-
shaMessageDigest
Returns a SHA1 hashed String.- Parameters:
plainText
- The string to hash.- Returns:
- The hashed string as SHA-1 encoded.
-
calculateNonce
-