provider

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

New is a helper function to simplify provider server and testing implementation.

func NewJoseJwkResource

func NewJoseJwkResource() resource.Resource

func NewJoseJwksResource

func NewJoseJwksResource() resource.Resource

func NewJoseJwtSignResource

func NewJoseJwtSignResource() resource.Resource

Types

type ECDSAPrivateKey

type ECDSAPrivateKey struct {
	*ecdsa.PrivateKey
}

For ECDSA private key type, the signing function will auto-select the appropriate signing algorithm to use. Therefore no 'Alg' is stored.

type EdDSAPrivateKey

type EdDSAPrivateKey struct {
	ed25519.PrivateKey
}

For ECDSA private key type, there is only one algorithm to use. Therefore no 'Alg' is stored.

type JWKSet

type JWKSet struct {
	Keys []json.RawMessage `json:"keys"` // Store keys as raw JSON
}

type PrivateKey

type PrivateKey interface {
	// contains filtered or unexported methods
}

type RSAPrivateKey

type RSAPrivateKey struct {
	*rsa.PrivateKey
	Alg types.String
}

Alg is used for RSA signing algorithm. The choice of algorithm used for signing is only applicable to RSA key. The signing key can be of RS256, RS384 or RS512.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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