authority

package
v1.68.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authority

type Authority struct {

	// 初始化标记
	IsInit bool
	// contains filtered or unexported fields
}

Authority 证书校验器主要结构

func (*Authority) Init

func (auth *Authority) Init(conf *SubConfig, sign int, lclValidator interface{}) error

Init 初始化auth

func (*Authority) Validate

func (auth *Authority) Validate(pub, signature []byte) error

Validate 检验证书

type SubConfig

type SubConfig struct {
	CertEnable bool   `json:"certEnable"`
	CertPath   string `json:"certPath"`
}

SubConfig 配置文件

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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