summaryrefslogtreecommitdiff
path: root/vendor/github.com/spiffe/go-spiffe/v2/bundle/jwtbundle/source.go
blob: 224cd9f93ef1f11ef5469ad9882c31b9886f90c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package jwtbundle

import (
	"github.com/spiffe/go-spiffe/v2/spiffeid"
)

// Source represents a source of JWT bundles keyed by trust domain.
type Source interface {
	// GetJWTBundleForTrustDomain returns the JWT bundle for the given trust
	// domain.
	GetJWTBundleForTrustDomain(trustDomain spiffeid.TrustDomain) (*Bundle, error)
}