Versions in this module Expand all Collapse all v1 v1.4.9 Jul 22, 2021 Changes in this version + var AttrOID = asn1.ObjectIdentifier + var AttrOIDString = "1.2.3.4.5.6.7.8.1" + type Attribute interface + GetName func() string + GetValue func() string + type AttributeRequest interface + GetName func() string + IsRequired func() bool + type Attributes struct + Attrs map[string]string + func (a *Attributes) Contains(name string) bool + func (a *Attributes) Names() []string + func (a *Attributes) True(name string) error + func (a *Attributes) Value(name string) (string, bool, error) + type Mgr struct + func New() *Mgr + func (mgr *Mgr) AddAttributesToCert(attrs *Attributes, cert *x509.Certificate) error + func (mgr *Mgr) GetAttributesFromCert(cert *x509.Certificate) (*Attributes, error) + func (mgr *Mgr) ProcessAttributeRequests(requests []AttributeRequest, attributes []Attribute) (*Attributes, error) + func (mgr *Mgr) ProcessAttributeRequestsForCert(requests []AttributeRequest, attributes []Attribute, cert *x509.Certificate) error