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.2.0
Published
Nov 24, 2021
Platform
js/wasm
Imports
4 packages
Last checked
6 hours ago

Tools for package owners.