You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: validator.go
    path of file: ./repos/kuma/pkg/tokens/builtin/issuer
    
    the code of the file until where you have to start completion: package issuer

import (
	"context"

	mesh_proto "github.com/kumahq/kuma/api/mesh/v1alpha1"
	core_tokens "github.com/kumahq/kuma/pkg/core/tokens"
)

type Validator interface {
	Validate(ctx context.Context, token core_tokens.Token, meshName string) (DataplaneIdentity, error)
}

type jwtValidator struct {
	validators func(stri
    
func (j *jwtValidator) Validate(ctx context.Context, token core_tokens.Token, meshName string) (DataplaneIdentity, error) {
	claims := &DataplaneClaims{}
	validators, err := j.validators(meshName)
	if err != nil {
		return DataplaneIdentity{}, err
	}
	if err := validators.ParseWithValidation(ctx, token, claims); err != nil {
		return DataplaneIdentity{}, err
	}
	return DataplaneIdentity{
		Name: claims.Name,
		Mesh: claims.Mesh,
		Tags: mesh_proto.MultiValueTagSetFrom(claims.Tags),
		Type: mesh_proto.ProxyType(claims.Type),
	}, nil
}