auth

package
v0.0.0-...-2de47e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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 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

func (signer *RsaSigner) VerifyResponse(content string, signature string, pubKey request.PlatformPubKey) bool

type YopSigner

type YopSigner interface {
	// SignRequest 请求报文签名
	SignRequest(yopRequest request.YopRequest)

	// VerifyResponse 响应报文验签
	VerifyResponse(content string, signature string, pubKey request.PlatformPubKey) bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL