jws

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportPrivateKeyAsPemStr

func ExportPrivateKeyAsPemStr(sk interface{}) string

ExportPrivateKeyAsPemStr exports the private key

func GenerateKeyPair

func GenerateKeyPair() (sk, pk interface{}, err error)

GenerateKeyPair generates a cryptographic key pair for the algorithm specified in the mytoken config.

func GetJWKS

func GetJWKS() jwk.Set

GetJWKS returns the jwks

func GetPrivateKey

func GetPrivateKey() interface{}

GetPrivateKey returns the private key

func GetPublicKey

func GetPublicKey() interface{}

GetPublicKey returns the public key

func LoadKey

func LoadKey()

LoadKey loads the private and public key

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL