kubernetes/pkg/serviceaccount/jwt_test.go

const otherPublicKey

const rsaPublicKey

const rsaKeyID

const rsaPrivateKey

const ecdsaPrivateKey

const ecdsaPublicKey

const ecdsaKeyID

func getPrivateKey(data string) interface{}

func getPublicKey(data string) interface{}

func TestTokenGenerateAndValidate(t *testing.T) {}

type keyIDPrefixer

func (k *keyIDPrefixer) GetPublicKeys(keyIDHint string) []serviceaccount.PublicKey {}

func checkJSONWebSignatureHasKeyID(t *testing.T, jwsString string, expectedKeyID string) {}

func newIndexer(get func(namespace, name string) (interface{}

type fakeIndexer

func (f *fakeIndexer) GetByKey(key string) (interface{}

func generateECDSAToken(t *testing.T, iss string, serviceAccount *v1.ServiceAccount, ecdsaSecret *v1.Secret) string {}

func generateECDSATokenWithMalformedIss(t *testing.T, serviceAccount *v1.ServiceAccount, ecdsaSecret *v1.Secret) string {}

func TestStaticPublicKeysGetter(t *testing.T) {}