1 Star 0 Fork 0

贺韦 / keystore-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
keystore.go 671 Bytes
一键复制 编辑 原始数据 按行查看 历史
package keystore
import (
"time"
)
// KeyStore is a mapping of alias to pointer to PrivateKeyEntry or TrustedCertificateEntry
type KeyStore map[string]interface{}
// Certificate describes type of certificate
type Certificate struct {
Type string
Content []byte
}
// Entry is a basis of entries types supported by keystore
type Entry struct {
CreationDate time.Time
}
// PrivateKeyEntry is an entry for private keys and associated certificates
type PrivateKeyEntry struct {
Entry
PrivKey []byte
CertChain []Certificate
}
// TrustedCertificateEntry is an entry for certificates only
type TrustedCertificateEntry struct {
Entry
Certificate Certificate
}
1
https://gitee.com/he_wei/keystore-go.git
git@gitee.com:he_wei/keystore-go.git
he_wei
keystore-go
keystore-go
v2.1.0

搜索帮助