SecretKey.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. namespace addons\JoinPay\common\logic\entity;
  3. /**
  4. * 密钥类
  5. * Class SecretKey
  6. * @package entity
  7. */
  8. class SecretKey {
  9. /**
  10. * 对请求参数进行签名的私钥
  11. */
  12. private $reqSignKey;
  13. /**
  14. * 对响应参数进行验签的公钥
  15. */
  16. private $respVerifyKey;
  17. /**
  18. * 对sec_key进行加密的公钥
  19. */
  20. private $secKeyEncryptKey;
  21. /**
  22. * 对sec_key进行解密的私钥
  23. */
  24. private $secKeyDecryptKey;
  25. /**
  26. * @return mixed
  27. */
  28. public function getReqSignKey()
  29. {
  30. return $this->reqSignKey;
  31. }
  32. /**
  33. * @param mixed $reqSignKey
  34. */
  35. public function setReqSignKey($reqSignKey): void
  36. {
  37. $this->reqSignKey = $reqSignKey;
  38. }
  39. /**
  40. * @return mixed
  41. */
  42. public function getRespVerifyKey()
  43. {
  44. return $this->respVerifyKey;
  45. }
  46. /**
  47. * @param mixed $respVerifyKey
  48. */
  49. public function setRespVerifyKey($respVerifyKey): void
  50. {
  51. $this->respVerifyKey = $respVerifyKey;
  52. }
  53. /**
  54. * @return mixed
  55. */
  56. public function getSecKeyEncryptKey()
  57. {
  58. return $this->secKeyEncryptKey;
  59. }
  60. /**
  61. * @param mixed $secKeyEncryptKey
  62. */
  63. public function setSecKeyEncryptKey($secKeyEncryptKey): void
  64. {
  65. $this->secKeyEncryptKey = $secKeyEncryptKey;
  66. }
  67. /**
  68. * @return mixed
  69. */
  70. public function getSecKeyDecryptKey()
  71. {
  72. return $this->secKeyDecryptKey;
  73. }
  74. /**
  75. * @param mixed $secKeyDecryptKey
  76. */
  77. public function setSecKeyDecryptKey($secKeyDecryptKey): void
  78. {
  79. $this->secKeyDecryptKey = $secKeyDecryptKey;
  80. }
  81. }