jwk

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KeySetURL string

Functions

func RefreshKeySets

func RefreshKeySets() (err error)

Types

type JWKeySet

type JWKeySet struct {
	Algorithm string `json:"alg"`
	Exp       string `json:"e"`
	KeyID     string `json:"kid"`
	KeyType   string `json:"kty"`
	Mod       string `json:"n"`
	Use       string `json:"use"`
}

func (JWKeySet) GetPublicKey

func (ks JWKeySet) GetPublicKey() (_ *rsa.PublicKey, err error)

type JWKeySets

type JWKeySets []JWKeySet

func GetKeySets

func GetKeySets() (_ JWKeySets, err error)

func (JWKeySets) LookupKeyID

func (kss JWKeySets) LookupKeyID(keyID string) (ks JWKeySet, err error)

Jump to

Keyboard shortcuts

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