Documentation ¶
Index ¶
- func InitModule(mb *application.ModuleBuilder)
- func InitModuleTest(mb *application.ModuleBuilder)
- type Certificate
- type CertificateEntity
- type CertificateInfo
- type Chain
- type Name
- type Raw
- type Root
- type RootManager
- type RootRegistration
- type RootRegistry
- type Solution
- type SolutionInfo
- type SolutionManager
- type SolutionRegistration
- type SolutionRegistry
- type VerifyOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Certificate ¶
type Certificate interface { GetSolution() Solution GetInfo() *CertificateInfo GetEntity() CertificateEntity Equals(other Certificate) bool }
Certificate ... 表示一张证书
type CertificateEntity ¶
type CertificateEntity interface {
Certificate() Certificate
}
CertificateEntity ...
type CertificateInfo ¶
type CertificateInfo struct { Version string SN string StartedAt time.Time StoppedAt time.Time FingerprintSHA1 []byte FingerprintSHA256 []byte Subject Name Issuer Name }
CertificateInfo ...
type Chain ¶
type Chain interface { GetParent() Chain GetCertificate() Certificate }
Chain ... 表示证书连上的一个节点
type Name ¶
type Name struct {
Country, Organization, OrganizationalUnit string
Locality, Province string
StreetAddress, PostalCode string
SerialNumber, CommonName string
}
Name ...
type RootManager ¶
type RootManager interface { ListAll() []Root Find(target *Name) (Root, error) Contains(cert Certificate) bool }
RootManager 表示根证书管理器 [inject:"#certificate-root-manager"]
type RootRegistration ¶
RootRegistration 表示根证书注册信息
type RootRegistry ¶
type RootRegistry interface {
ListRegistrations() []*RootRegistration
}
RootRegistry 表示根证书注册对象 [inject:".certificate-root-registry"]
type Solution ¶
type Solution interface { Load(raw *Raw) ([]Certificate, error) Verify(chain Chain, op *VerifyOptions) error GetInfo() *SolutionInfo }
Solution ... 表示一套证书方案
type SolutionInfo ¶
type SolutionInfo struct { Algorithm string // like 'RSA' ContentType string // like 'block' Format string // like 'x509' }
SolutionInfo 方案信息
type SolutionManager ¶
type SolutionManager interface { Solution MakeChain(certs []Certificate) (Chain, error) LoadChain(raw *Raw) (Chain, error) ListAll() []Solution }
SolutionManager 表示证书方案管理器 [inject:"#certificate-solution-manager"]
type SolutionRegistration ¶
type SolutionRegistration struct { Info SolutionInfo Solution Solution }
SolutionRegistration ...证书方案注册信息
type SolutionRegistry ¶
type SolutionRegistry interface {
GetRegistration() *SolutionRegistration
}
SolutionRegistry ... 证书方案注册人 [inject:".certificate-solution-registry"]
type VerifyOptions ¶
VerifyOptions ...
Click to show internal directories.
Click to hide internal directories.