keystore

package
v0.0.0-...-9ed9871 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyStore

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

func New

func New() *KeyStore

func NewFs

func NewFs(fsys fs.FS) (*KeyStore, error)

func NewMap

func NewMap(store map[string]*rsa.PrivateKey) *KeyStore

func (*KeyStore) Add

func (ks *KeyStore) Add(privateKey *rsa.PrivateKey, kid string)

func (*KeyStore) PrivateKey

func (ks *KeyStore) PrivateKey(kid string) (*rsa.PrivateKey, error)

func (*KeyStore) PublicKey

func (ks *KeyStore) PublicKey(kid string) (*rsa.PublicKey, error)

func (*KeyStore) Remove

func (ks *KeyStore) Remove(kid string)

Jump to

Keyboard shortcuts

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