Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrKidLookup = errors.New("kid lookup failed")
)
Error variables for key store.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory represents an in memory store implementation of the KeyLookup interface for use with the auth package.
func NewMemoryFS ¶
NewMemoryFS constructs a key store and fill it with keys from fs.
func NewMemoryStore ¶
func NewMemoryStore(store map[string]PrivateKey) *Memory
NewMemoryStore constructs a key store with an initial set of keys.
func (*Memory) PrivateKeyPEM ¶
PrivateKeyPEM searches the key store for a given kid and returns the private key.
type PrivateKey ¶
type PrivateKey struct { PK *rsa.PrivateKey PEM []byte }
PrivateKey represents key information.
Click to show internal directories.
Click to hide internal directories.