localjwtauthority

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package localjwtauthority implements a simple "CA" for JWTs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(pool *Pool) ([]byte, error)

Marshal serializes a Pool to JSON.

Types

type Authority

type Authority struct {
	ID         string
	Algorithm  string
	SigningKey crypto.PrivateKey
}

func GenerateECDSAP256Authority

func GenerateECDSAP256Authority(id string) (*Authority, error)

GenerateECDSAP256Authority generates an ECDSA P256 JWT signing key.

type Pool

type Pool struct {
	Authorities []*Authority
}

func Unmarshal

func Unmarshal(wireBytes []byte) (*Pool, error)

Unmarshal loads a Pool from JSON.

Jump to

Keyboard shortcuts

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