Documentation ¶
Overview ¶
Package keystore implements the auth.KeyLookup interface. This implements an in-memory keystore for JWT support.
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
}
KeyStore represents an in memory store implementation of the KeyLookup interface for use with the auth package.
func (*KeyStore) LoadAuthKeys ¶
LoadAuthKeys loads a set of RSA PEM files rooted inside of a directory. The name of each PEM file will be used as the key id.
func (*KeyStore) LoadBankKeys ¶
LoadBankKeys loads a set of password protected ECDSA key files rooted inside of a directory. The last section of the name for each file will be used as the key id.
func (*KeyStore) PrivateKey ¶
PrivateKey searches the key store for a given kid and returns the private key.
Click to show internal directories.
Click to hide internal directories.