func GetSignatureToken314Plus(kid, issuer, trustAnchor string, alg jwt.SigningMethod) jwt.Token {
	token := jwt.Token{
		Header: map[string]interface{}{
			"typ":                           "JOSE",
			"kid":                           kid,
			"cty":                           "application/json",
			"http://openbanking.org.uk/iat": time.Now().Unix(),
			"http://openbanking.org.uk/iss": issuer,      //ASPSP ORGID or TTP ORGID/SSAID
			"http://openbanking.org.uk/tan": trustAnchor, //Trust anchor
			"alg":                           alg.Alg(),
			"crit": []string{
				"http://openbanking.org.uk/iat",
				"http://openbanking.org.uk/iss",
				"http://openbanking.org.uk/tan",
			},
		},
		Method: alg,
	}
	return token
}
// GetSignatureToken314Plus returns the Token with correct headers for v3.1.4 and above of the R/W Apis
GetSignatureToken314Plus returns the Token with correct headers for v3.1.4 and above of the R/W Apis
// GetSignatureToken314Plus returns the Token with correct headers for v3 . 1 . 4 and above of the R / W Apis
func GetSignatureToken314Plus(kid, issuer, trustAnchor string, alg jwt.SigningMethod) jwt.Token {
	token := jwt.Token{
		Header: map[string]interface{}{
			"typ":                           "JOSE",
			"kid":                           kid,
			"cty":                           "application/json",
			"http://openbanking.org.uk/iat": time.Now().Unix(),
			"http://openbanking.org.uk/iss": issuer,      
			"http://openbanking.org.uk/tan": trustAnchor, 
			"alg":                           alg.Alg(),
			"crit": []string{
				"http://openbanking.org.uk/iat",
				"http://openbanking.org.uk/iss",
				"http://openbanking.org.uk/tan",
			},
		},
		Method: alg,
	}
	return token
}
func GetSignatureToken314Plus ( kid , issuer , trustAnchor string , alg jwt . SigningMethod ) jwt . Token { token := jwt . Token { Header : map [ string ] interface { } { " " : " " , " " : kid , " " : " " , " " : time . Now ( ) . Unix ( ) , " " : issuer , " " : trustAnchor , " " : alg . Alg ( ) , " " : [ ] string { " " , " " , " " , } , } , Method : alg , } return token }
GetSignatureToken314Plus returns the Token with correct headers for v3.1.4 and above of the R/W Apis
GetSignatureToken314Plus returns the Token with correct headers for v3 . 1 . 4 and above of the R / W Apis
//ASPSP ORGID or TTP ORGID/SSAID //Trust anchor