SmsOtpAuthnYunxinCheckSumBuilder

This commit is contained in:
shimingxy 2020-04-12 10:43:53 +08:00
parent 2e90f5788e
commit 2fb491b477
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public class SmsOtpAuthnYunxin extends SmsOtpAuthn {
/*
* 参考计算CheckSum的java代码在上述文档的参数列表中有CheckSum的计算文档示例
*/
String checkSum = SmsOtpAuthnCheckSumBuilder
String checkSum = SmsOtpAuthnYunxinCheckSumBuilder
.getCheckSum(APP_SECRET, NONCE, curTime);
// 设置请求的header

View File

@ -2,7 +2,7 @@ package org.maxkey.crypto.password.opt.impl.sms.netease;
import java.security.MessageDigest;
public class SmsOtpAuthnCheckSumBuilder {
public class SmsOtpAuthnYunxinCheckSumBuilder {
// 计算并获取CheckSum
public static String getCheckSum(String appSecret, String nonce, String curTime) {
return encode("sha1", appSecret + nonce + curTime);