local

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyStorage

type KeyStorage struct {
	PublicKeyPath  string
	PrivateKeyPath string
}

KeyStorage is a wrapper over public and private key files.

func NewKeyStorage

func NewKeyStorage(settings model.KeyStorageSettings) (*KeyStorage, error)

NewKeyStorage creates and returns new key files storage.

func (*KeyStorage) InsertKeys

func (ks *KeyStorage) InsertKeys(keys *model.JWTKeys) error

InsertKeys inserts public and private keys.

func (*KeyStorage) LoadKeys

func (ks *KeyStorage) LoadKeys(alg ijwt.TokenSignatureAlgorithm) (*model.JWTKeys, error)

LoadKeys loads keys from the key storage.

Jump to

Keyboard shortcuts

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