jwk

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SigningMethod = &jwt.SigningMethodEd25519{}

SigningMethod is a JSON Web Token signing method. It uses Ed25519 keys to sign and verify tokens.

Functions

This section is empty.

Types

type Pair

type Pair struct {
	// contains filtered or unexported fields
}

Pair is a JSON Web Key pair.

func NewPair

func NewPair(cfg *config.Config) (Pair, error)

NewPair creates a new JSON Web Key pair.

func (Pair) JWK

func (p Pair) JWK() jose.JSONWebKey

JWK returns the JSON Web Key.

func (Pair) PrivateKey

func (p Pair) PrivateKey() crypto.PrivateKey

PrivateKey returns the private key.

Jump to

Keyboard shortcuts

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