Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + func GetTokenExpiry(token string) (time.Time, time.Time, error) + func ValidateToken(ctx context.Context, token string, keyStore KeyStore, audience []string) (spiffeid.ID, map[string]interface{}, error) + type KeyStore interface + FindPublicKey func(ctx context.Context, td spiffeid.TrustDomain, kid string) (crypto.PublicKey, error) + func NewKeyStore(trustDomainKeys map[spiffeid.TrustDomain]map[string]crypto.PublicKey) KeyStore + type Signer struct + func NewSigner(config SignerConfig) *Signer + func (s *Signer) SignToken(id spiffeid.ID, audience []string, expires time.Time, signer crypto.Signer, ...) (string, error) + type SignerConfig struct + Clock clock.Clock + Issuer string