keysmongodb

package
v0.1.6-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 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 KeysStorage

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

index - keytype (private, jwks) value - string(bytes)

func New

func New(lg *slog.Logger, url, database, collection string) (*KeysStorage, error)

func (*KeysStorage) ReadJWKSets

func (k *KeysStorage) ReadJWKSets() (*storage.JWKSetsData, error)

func (*KeysStorage) ReadPrivateKey

func (k *KeysStorage) ReadPrivateKey() (*storage.PrivateKeyData, error)

func (*KeysStorage) WriteJWKSets

func (k *KeysStorage) WriteJWKSets(jwkSets storage.JWKSetsData) error

func (*KeysStorage) WritePrivateKey

func (k *KeysStorage) WritePrivateKey(key storage.PrivateKeyData) error

type Kkk

type Kkk struct {
	KeyType string `bson:"keytype"`
	KeyData []byte `bson:"keydata"`
}

Jump to

Keyboard shortcuts

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