func GetSignatureToken30(kid, issuer, trustAnchor string, alg jwt.SigningMethod) jwt.Token {
	token := jwt.Token{
		Header: map[string]interface{}{
			"typ":                           "JOSE",
			"kid":                           kid,
			"b64":                           false,
			"cty":                           "application/json",
			"http://openbanking.org.uk/iat": time.Now().Unix(),
			"http://openbanking.org.uk/iss": issuer, //ASPSP ORGID or TTP ORGID/SSAID
			"alg":                           alg.Alg(),
			"crit": []string{
				"b64",
				"http://openbanking.org.uk/iat",
				"http://openbanking.org.uk/iss",
			},
		},
		Method: alg,
	}
	return token
}
// GetSignatureToken30 returns the Token for v3.0 versions of the R/W specification.
// Read/Write Data API Specification - v3.0 Specification: https://openbanking.atlassian.net/wiki/spaces/DZ/pages/641992418/Read+Write+Data+API+Specification+-+v3.0.
// According to the spec this field `http://openbanking.org.uk/tan` should not be sent in the `x-jws-signature` header.
GetSignatureToken30 returns the Token for v3.0 versions of the R/W specification.
// GetSignatureToken30 returns the Token for v3 . 0 versions of the R / W specification . // Read / Write Data API Specification - v3 . 0 Specification : https : // openbanking . atlassian . net / wiki / spaces / DZ / pages / 641992418 / Read + Write + Data + API + Specification + - + v3 . 0 . // According to the spec this field ` http : // openbanking . org . uk / tan ` should not be sent in the ` x - jws - signature ` header .
func GetSignatureToken30(kid, issuer, trustAnchor string, alg jwt.SigningMethod) jwt.Token {
	token := jwt.Token{
		Header: map[string]interface{}{
			"typ":                           "JOSE",
			"kid":                           kid,
			"b64":                           false,
			"cty":                           "application/json",
			"http://openbanking.org.uk/iat": time.Now().Unix(),
			"http://openbanking.org.uk/iss": issuer, 
			"alg":                           alg.Alg(),
			"crit": []string{
				"b64",
				"http://openbanking.org.uk/iat",
				"http://openbanking.org.uk/iss",
			},
		},
		Method: alg,
	}
	return token
}
func GetSignatureToken30 ( kid , issuer , trustAnchor string , alg jwt . SigningMethod ) jwt . Token { token := jwt . Token { Header : map [ string ] interface { } { " " : " " , " " : kid , " " : false , " " : " " , " " : time . Now ( ) . Unix ( ) , " " : issuer , " " : alg . Alg ( ) , " " : [ ] string { " " , " " , " " , } , } , Method : alg , } return token }
GetSignatureToken30 returns the Token for v3.0 versions of the R/W specification.
GetSignatureToken30 returns the Token for v3 . 0 versions of the R / W specification .
//ASPSP ORGID or TTP ORGID/SSAID