package test

import "github.com/golang-jwt/jwt/v4/test"

Index

Functions

func LoadECPrivateKeyFromDisk

func LoadECPrivateKeyFromDisk(location string) crypto.PrivateKey

func LoadECPublicKeyFromDisk

func LoadECPublicKeyFromDisk(location string) crypto.PublicKey

func LoadRSAPrivateKeyFromDisk

func LoadRSAPrivateKeyFromDisk(location string) *rsa.PrivateKey

func LoadRSAPublicKeyFromDisk

func LoadRSAPublicKeyFromDisk(location string) *rsa.PublicKey

func MakeSampleToken

func MakeSampleToken(c jwt.Claims, method jwt.SigningMethod, key interface{}) string

MakeSampleToken creates and returns a encoded JWT token that has been signed with the specified cryptographic key.

Source Files

helpers.go

Version
v4.5.2 (latest)
Published
Mar 21, 2025
Platform
darwin/amd64
Imports
4 packages
Last checked
2 weeks ago

Tools for package owners.