jwks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 3 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   `json:"alg"`
	Kty string   `json:"kty"`
	Use string   `json:"use,omitempty"`
	N   string   `json:"n"`
	E   string   `json:"e"`
	Kid string   `json:"kid,omitempty"`
	X5t string   `json:"x5t,omitempty"`
	X5c []string `json:"x5c,omitempty"`
}

func NewJWK

func NewJWK(rsaPublicKey config.RSAPubKey) (*JWK, error)

NewJWK returns a JWK generated from the provided rsaPublicKey.

type JWKS

type JWKS struct {
	Keys []JWK `json:"keys"`
}

func NewJWKS

func NewJWKS(keys *config.RSAPubKeys) (*JWKS, error)

NewJWKS returns a JWKS with a JWK generated from the provided rsaPublicKey.

Jump to

Keyboard shortcuts

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