IcbcConstants.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. /**
  3. *
  4. */
  5. class IcbcConstants
  6. {
  7. public static $SIGN_TYPE = "sign_type";
  8. public static $SIGN_TYPE_RSA = "RSA";
  9. public static $SIGN_TYPE_RSA2 = "RSA2";
  10. public static $SIGN_TYPE_SM2 = "SM2";
  11. public static $SIGN_TYPE_CA = "CA";
  12. public static $SIGN_SHA1RSA_ALGORITHMS = "SHA1WithRSA";
  13. public static $SIGN_SHA256RSA_ALGORITHMS = "SHA256WithRSA";
  14. public static $ENCRYPT_TYPE_AES = "AES";
  15. public static $APP_ID = "app_id";
  16. public static $FORMAT = "format";
  17. public static $TIMESTAMP = "timestamp";
  18. public static $SIGN = "sign";
  19. public static $APP_AUTH_TOKEN = "app_auth_token";
  20. public static $CHARSET = "charset";
  21. public static $NOTIFY_URL = "notify_url";
  22. public static $RETURN_URL = "return_url";
  23. public static $ENCRYPT_TYPE = "encrypt_type";
  24. // -----===-------///
  25. public static $BIZ_CONTENT_KEY = "biz_content";
  26. /** 默认时间格式 **/
  27. public static $DATE_TIME_FORMAT = "Y-m-d H:i:s";//java版"yyyy-MM-dd HH:mm:ss"
  28. /** Date默认时区 **/
  29. public static $DATE_TIMEZONE = "Etc/GMT+8";//java版GMT+8
  30. /** UTF-8字符集 **/
  31. public static $CHARSET_UTF8 = "UTF-8";
  32. /** GBK字符集 **/
  33. public static $CHARSET_GBK = "GBK";
  34. /** JSON 应格式 */
  35. public static $FORMAT_JSON = "json";
  36. /** XML 应格式 */
  37. public static $FORMAT_XML = "xml";
  38. public static $CA = "ca";
  39. public static $PASSWORD = "password";
  40. public static $RESPONSE_BIZ_CONTENT = "response_biz_content";
  41. /** 消息唯一编号 **/
  42. public static $MSG_ID = "msg_id";
  43. /** sdk版本号在header中的key */
  44. public static $VERSION_HEADER_NAME = "APIGW-VERSION";
  45. }
  46. ?>