Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + const MinimumRefreshHint + func BundleProtoFromRootCA(trustDomainID string, rootCA *x509.Certificate) *common.Bundle + func BundleProtoFromRootCADER(trustDomainID string, derBytes []byte) *common.Bundle + func BundleProtoFromRootCAs(trustDomainID string, rootCAs []*x509.Certificate) *common.Bundle + func BundleProtoFromRootCAsDER(trustDomainID string, derBytes []byte) (*common.Bundle, error) + func CalculateRefreshHint(bundle *Bundle) time.Duration + func CommonBundleFromProto(b *types.Bundle) (*common.Bundle, error) + func JWTSigningKeysFromBundleProto(b *common.Bundle) (map[string]crypto.PublicKey, error) + func Marshal(bundle *Bundle, opts ...MarshalOption) ([]byte, error) + func MergeBundles(a, b *common.Bundle) (*common.Bundle, bool) + func PruneBundle(bundle *common.Bundle, expiration time.Time, log logrus.FieldLogger) (*common.Bundle, bool, error) + func RootCAsDERFromBundleProto(b *common.Bundle) (derBytes []byte) + func RootCAsFromBundleProto(b *common.Bundle) (out []*x509.Certificate, err error) + type Bundle struct + func BundleFromProto(b *common.Bundle) (*Bundle, error) + func BundleFromRootCA(trustDomain spiffeid.TrustDomain, rootCA *x509.Certificate) *Bundle + func BundleFromRootCAs(trustDomain spiffeid.TrustDomain, rootCAs []*x509.Certificate) *Bundle + func Decode(trustDomain spiffeid.TrustDomain, r io.Reader) (*Bundle, error) + func New(trustDomain spiffeid.TrustDomain) *Bundle + func ParseBundle(bundleBytes []byte) (*Bundle, error) + func Unmarshal(trustDomain spiffeid.TrustDomain, data []byte) (*Bundle, error) + func (b *Bundle) AppendJWTSigningKey(kid string, key crypto.PublicKey) error + func (b *Bundle) AppendRootCA(rootCA *x509.Certificate) + func (b *Bundle) EqualTo(other *Bundle) bool + func (b *Bundle) JWTSigningKeys() map[string]crypto.PublicKey + func (b *Bundle) Proto() *common.Bundle + func (b *Bundle) RefreshHint() time.Duration + func (b *Bundle) RootCAs() []*x509.Certificate + func (b *Bundle) SetRefreshHint(d time.Duration) + func (b *Bundle) TrustDomainID() string + type MarshalOption interface + func NoJWTSVIDKeys() MarshalOption + func NoX509SVIDKeys() MarshalOption + func OverrideRefreshHint(value time.Duration) MarshalOption + func StandardJWKS() MarshalOption