jwks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWK

type JWK struct {
	Alg string
	X   []byte
}

func (JWK) Verify

func (jwk JWK) Verify(msg, sig []byte) error

type JWKS

type JWKS interface {
	Get(kid string) (jwk JWK, ok bool)
}

func FromDiscoveryURL

func FromDiscoveryURL(ctx context.Context, issuer string, interval time.Duration, handleErr ...func(error)) JWKS

func FromED25519

func FromED25519(pemData string) (_ JWKS, err error)

func FromJSON

func FromJSON(jsonStr string) (_ JWKS, err error)

func FromKey

func FromKey(pub ed25519.PublicKey) JWKS

func FromURL

func FromURL(ctx context.Context, url string, interval time.Duration, handleErr ...func(error)) JWKS

Jump to

Keyboard shortcuts

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