helpers

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKey

func GenerateKey(kidPrefix *string) (jwk.Key, error)

func GetPrivateKey

func GetPrivateKey(key jwk.Key) (*ecdsa.PrivateKey, error)

func GetPublicKey

func GetPublicKey(key jwk.Key) (*ecdsa.PublicKey, error)

func IsUrlSafeAndParsed

func IsUrlSafeAndParsed(ustr string) (*url.URL, error)

func ParseJWKFromBytes

func ParseJWKFromBytes(b []byte) (jwk.Key, error)

Types

type JwksResponseObject

type JwksResponseObject struct {
	Keys []jwk.Key `json:"keys"`
}

func CreateJwksResponseObject

func CreateJwksResponseObject(key jwk.Key) *JwksResponseObject

Jump to

Keyboard shortcuts

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