TimestampVerifyRequest.go 1.0 KB

1234567891011121314151617181920
  1. package others_request
  2. import (
  3. "git.sxidc.com/student-physical-examination/contract_lock_sdk/http"
  4. )
  5. type TimestampVerifyRequest struct {
  6. // <ext>core:true</ext> 【签署后时间戳】签署后时间戳 【作用】 1、时间戳产生的逻辑:系统将签署数据用Hash算法运算形成摘要,然后将该摘要发送到DTS(时间戳服务器)。DTS在加入了收到文件摘要的日期和事件信息后再对该文件加密(数字签名)得到时间戳,时间戳是一个经加密后形成的凭证文档,即DTS的数字签名。 2、时间戳验签逻辑:传入时间戳数据,系统会校验时间戳是否为真。 【传参】 以Base64编码格式传入时间戳字符串,需符合RFC 3161。
  7. Timestamp string `json:"timestamp"`
  8. }
  9. func (obj TimestampVerifyRequest) GetUrl() string {
  10. return "/timestamp/verify"
  11. }
  12. func (obj TimestampVerifyRequest) GetHttpParameter() *http.HttpParameter {
  13. parameter := http.NewPostHttpParameter()
  14. parameter.AddParam("timestamp", obj.Timestamp)
  15. return parameter
  16. }