jwk

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package jwk implements a subset of the JSON Web Key spec (https://tools.ietf.org/html/rfc7517)

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,omitempty"`
	KTY string `json:"kty,omitempty"`
	CRV string `json:"crv,omitempty"`
	D   string `json:"d,omitempty"`
	X   string `json:"x,omitempty"`
	Y   string `json:"y,omitempty"`
}

JWK represents a JSON Web Key as per RFC7517 (https://tools.ietf.org/html/rfc7517) Note that this is a subset of the spec. There are a handful of properties that the spec allows for that are not represented here at the moment. This is because we only need a subset of the spec for our purposes.

func (JWK) ComputeThumbprint

func (j JWK) ComputeThumbprint() (string, error)

ComputeThumbprint computes the JWK thumbprint as per RFC7638 (https://tools.ietf.org/html/rfc7638)

Jump to

Keyboard shortcuts

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