jwks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package jwks contains code for dealing with JSON Web Key Sets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

Generator is atype for generating JWKS with a single singing key.

func NewGenerator

func NewGenerator(certGen certGenerator, keyGen keyGenerator, keyLen int) *Generator

NewGenerator is the preferred way to instantiate a key generator.

func (*Generator) GenerateJWKSet

func (t *Generator) GenerateJWKSet() (*jwk.Set, *jwtmock.SigningKey, error)

GenerateJWKSet generates a JSON web key set for use in signing tokens.

Jump to

Keyboard shortcuts

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