package test
import "github.com/golang-jwt/jwt/v4/test"
Index ¶
- func LoadECPrivateKeyFromDisk(location string) crypto.PrivateKey
- func LoadECPublicKeyFromDisk(location string) crypto.PublicKey
- func LoadRSAPrivateKeyFromDisk(location string) *rsa.PrivateKey
- func LoadRSAPublicKeyFromDisk(location string) *rsa.PublicKey
- func MakeSampleToken(c jwt.Claims, method jwt.SigningMethod, key interface{}) string
Functions ¶
func LoadECPrivateKeyFromDisk ¶
func LoadECPrivateKeyFromDisk(location string) crypto.PrivateKey
func LoadECPublicKeyFromDisk ¶
func LoadRSAPrivateKeyFromDisk ¶
func LoadRSAPrivateKeyFromDisk(location string) *rsa.PrivateKey
func LoadRSAPublicKeyFromDisk ¶
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 ¶
- Version
- v4.2.0
- Published
- Nov 24, 2021
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 6 hours ago –
Tools for package owners.