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 StringcalculateNonce()Stringmd5MessageDigest(String plainText)StringshaMessageDigest(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
-