keyset

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderKeyID = "KeyID"

Variables

This section is empty.

Functions

func GeneratePrivateKey

func GeneratePrivateKey(keySize int, keyID string) ([]byte, error)

func ToPublicKeys

func ToPublicKeys(jwks []jose.JSONWebKey) map[string]any

func UnmarshalJWKS

func UnmarshalJWKS(bytes []byte) ([]jose.JSONWebKey, error)

Types

type Provider

type Provider interface {
	Get() (map[string]any, error)
}

func NewProvider

func NewProvider(dir string, keys []string, cacheDuration time.Duration) Provider

Jump to

Keyboard shortcuts

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