Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyStorage ¶
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.
Click to show internal directories.
Click to hide internal directories.