jwk

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 7 Imported by: 1

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