Documentation ¶
Overview ¶
Package auth Copyright: Copyright (c) 2020<br> Company: 易宝支付(YeePay)<br> @author : yunmei.wu @time : 2023/3/20 2:43 PM
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DEFAULT_HEADERS_TO_SIGN []string = []string{constants.YOP_APPKEY_HEADER_KEY, constants.YOP_REQUEST_ID, constants.YOP_CONTENT_SHA256}
View Source
var FormatISOTime = "2006-01-02T15:04:05Z"
Functions ¶
This section is empty.
Types ¶
type RsaSigner ¶
type RsaSigner struct { }
func (*RsaSigner) SignRequest ¶
func (signer *RsaSigner) SignRequest(yopRequest request.YopRequest)
func (*RsaSigner) VerifyResponse ¶
type YopSigner ¶
type YopSigner interface { // SignRequest 请求报文签名 SignRequest(yopRequest request.YopRequest) // VerifyResponse 响应报文验签 VerifyResponse(content string, signature string, pubKey request.PlatformPubKey) bool }
Click to show internal directories.
Click to hide internal directories.