rsa_filter

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "rsa"
)

Variables

This section is empty.

Functions

func Create

func Create(id, name string, conf *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Config

type Config struct {
	PrivateKey         string `json:"private_key" label:"私钥" description:"对请求体进行解密,对响应体进行签名"`
	PublicKey          string `json:"public_key" label:"公钥" description:"对请求体进行验签,对响应体进行加密"`
	RequestSignHeader  string `json:"request_sign_header" label:"请求签名头"`
	ResponseSignHeader string `json:"response_sign_header" label:"响应签名头"`
	Format             string `json:"format" label:"密钥格式" enum:"origin,base64"`
}

Jump to

Keyboard shortcuts

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