Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthConfig ¶
AuthConfig 校验器配置
type Validator ¶
type Validator interface { Setup(config *AuthConfig) error Validate(cert []byte, pubKey []byte) error GetCertFromSignature(signature []byte) ([]byte, error) }
Validator 证书校验器
func GetLocalValidator ¶
func GetLocalValidator(authConfig *AuthConfig, signType int) (Validator, error)
GetLocalValidator 根据类型获取校验器
Click to show internal directories.
Click to hide internal directories.