keyset

package
v0.0.0-...-200b26a Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package keyset contains entities to control JSON Web Key Sets (JWKS)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeySet

type KeySet interface {
	PublicKeyURL() string
	PublicKey(kid string) crypto.PublicKey
}

KeySet retrieves public keys from OAuth server

func New

func New(publicKeyURL string, httpClient *networking.HTTPClient) KeySet

New creates a new Public Key Util

type RemoteKeySet

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

RemoteKeySet manages the retrieval and storage of OIDC public keys

func (*RemoteKeySet) PublicKey

func (s *RemoteKeySet) PublicKey(kid string) crypto.PublicKey

PublicKey returns the public key with the specified kid

func (*RemoteKeySet) PublicKeyURL

func (s *RemoteKeySet) PublicKeyURL() string

PublicKeyURL returns the public key url for the instance

Jump to

Keyboard shortcuts

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