Compare commits
9 Commits
dev
...
8d2de46efa
| Author | SHA1 | Date | |
|---|---|---|---|
| 8d2de46efa | |||
| 8c8c98b756 | |||
| d36d66bbf7 | |||
| 3b4b9952dc | |||
| b3e319a21f | |||
| 5213f7002f | |||
| 20f500ebcf | |||
| fd13fafd86 | |||
| 8926ec889b |
@@ -24,10 +24,8 @@ type Signer interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
SecretKey string `yaml:"secret_key" json:"secret_key"` // AES对称加密密钥
|
SecretKey string `yaml:"secret_key" json:"secret_key"` // 对称加密密钥
|
||||||
SignKey string `yaml:"sign_key" json:"sign_key"` // 签名密钥
|
SignKey string `yaml:"sign_key" json:"sign_key"` // 签名密钥
|
||||||
PublicKey string `yaml:"public_key" json:"public_key"` // RSA公钥
|
|
||||||
PrivateKey string `yaml:"private_key" json:"private_key"` // RSA私钥
|
|
||||||
TimestampWindow time.Duration `yaml:"timestamp_window" json:"timestamp_window"` // 时间戳允许的时间窗口
|
TimestampWindow time.Duration `yaml:"timestamp_window" json:"timestamp_window"` // 时间戳允许的时间窗口
|
||||||
EnableTimestamp bool `yaml:"enable_timestamp" json:"enable_timestamp"` // 是否启用时间戳验证
|
EnableTimestamp bool `yaml:"enable_timestamp" json:"enable_timestamp"` // 是否启用时间戳验证
|
||||||
EnableSignature bool `yaml:"enable_signature" json:"enable_signature"` // 是否启用签名
|
EnableSignature bool `yaml:"enable_signature" json:"enable_signature"` // 是否启用签名
|
||||||
|
|||||||
Reference in New Issue
Block a user