Documentation ¶
Overview ¶
Package adapters implements adapters for JWK data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFound = errors.New("Key not found")
ErrKeyNotFound defines an error when requested key was not found.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set interface { // Add a new key. Add(jwk.Key) error // All returns all keys. All() (*jwk.Set, error) // ByID returns a key by its identifier. ByID(string) (*jwk.Key, error) }
A Set represents a data adapter for JWK key set.
type SetMemory ¶
type SetMemory struct {
// contains filtered or unexported fields
}
A SetMemory represents an in-memory data adapter for JWK key set.
func NewSetMemory ¶
func NewSetMemory() *SetMemory
NewSetMemory creates a new instance of SetMemory.
type SetMongo ¶
type SetMongo struct {
// contains filtered or unexported fields
}
A SetMongo represents a MongoDB data adapter for JWK key set.
func NewSetMongo ¶
func NewSetMongo(col *mgo.Collection) *SetMongo
NewSetMongo creates a new instance of SetMongo.
Click to show internal directories.
Click to hide internal directories.