类 HuaweiBuilder

java.lang.Object
org.dromara.sms4j.huawei.utils.HuaweiBuilder

public class HuaweiBuilder extends Object
  • 构造器详细资料

    • HuaweiBuilder

      private HuaweiBuilder()
  • 方法详细资料

    • buildWsseHeader

      public static String buildWsseHeader(String appKey, String appSecret)
      buildWsseHeader

      构造X-WSSE参数值

    • trustAllHttpsCertificates

      static void trustAllHttpsCertificates() throws Exception
      抛出:
      Exception
    • buildRequestBody

      public static String buildRequestBody(String sender, String receiver, String templateId, String templateParas, String statusCallBack, String signature)
      buildRequestBody

      构造请求Body体

      参数:
      sender - 国内短信签名通道号
      receiver - 短信接收者
      templateId - 短信模板id
      templateParas - 模板参数
      statusCallBack - 短信状态报告接收地
      signature - | 签名名称,使用国内短信通用模板时填写
    • listToString

      public static String listToString(List<String> list)
    • dateFormat

      private static String dateFormat(Date date)