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 S3-backed key files storage.
func (*KeyStorage) InsertKeys ¶
func (ks *KeyStorage) InsertKeys(keys *model.JWTKeys) error
InsertKeys inserts private and public keys into S3 key storage.
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.