...

Package test

import "github.com/golang-jwt/jwt/v5/test"
Overview
Index

Overview ▾

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.