Documentation ¶
Index ¶
- func First(keys []jose.JsonWebKey) *jose.JsonWebKey
- func MustRSAPrivate(key *jose.JsonWebKey) *rsa.PrivateKey
- func MustRSAPublic(key *jose.JsonWebKey) *rsa.PublicKey
- func PEMBlockForKey(key interface{}) (*pem.Block, error)
- func ToRSAPrivate(key *jose.JsonWebKey) (*rsa.PrivateKey, error)
- func ToRSAPublic(key *jose.JsonWebKey) (*rsa.PublicKey, error)
- type AEAD
- type ECDSA256Generator
- type ECDSA521Generator
- type HS256Generator
- type HTTPManager
- func (m *HTTPManager) AddKey(set string, key *jose.JsonWebKey) error
- func (m *HTTPManager) AddKeySet(set string, keys *jose.JsonWebKeySet) error
- func (m *HTTPManager) CreateKeys(set, algorithm string) (*jose.JsonWebKeySet, error)
- func (m *HTTPManager) DeleteKey(set, kid string) error
- func (m *HTTPManager) DeleteKeySet(set string) error
- func (m *HTTPManager) GetKey(set, kid string) (*jose.JsonWebKeySet, error)
- func (m *HTTPManager) GetKeySet(set string) (*jose.JsonWebKeySet, error)
- type Handler
- func (h *Handler) Create(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) DeleteKey(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) DeleteKeySet(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) GetGenerators() map[string]KeyGenerator
- func (h *Handler) GetKey(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) GetKeySet(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) SetRoutes(r *httprouter.Router)
- func (h *Handler) UpdateKey(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) UpdateKeySet(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- type KeyGenerator
- type Manager
- type MemoryManager
- func (m *MemoryManager) AddKey(set string, key *jose.JsonWebKey) error
- func (m *MemoryManager) AddKeySet(set string, keys *jose.JsonWebKeySet) error
- func (m *MemoryManager) DeleteKey(set, kid string) error
- func (m *MemoryManager) DeleteKeySet(set string) error
- func (m *MemoryManager) GetKey(set, kid string) (*jose.JsonWebKeySet, error)
- func (m *MemoryManager) GetKeySet(set string) (*jose.JsonWebKeySet, error)
- type RS256Generator
- type RedisManager
- func (m *RedisManager) AddKey(set string, key *jose.JsonWebKey) error
- func (m *RedisManager) AddKeySet(set string, keys *jose.JsonWebKeySet) error
- func (m *RedisManager) DeleteKey(set, kid string) error
- func (m *RedisManager) DeleteKeySet(set string) error
- func (m *RedisManager) GetKey(set, kid string) (*jose.JsonWebKeySet, error)
- func (m *RedisManager) GetKeySet(set string) (*jose.JsonWebKeySet, error)
- type RethinkManager
- func (m *RethinkManager) AddKey(set string, key *jose.JsonWebKey) error
- func (m *RethinkManager) AddKeySet(set string, keys *jose.JsonWebKeySet) error
- func (m *RethinkManager) ColdStart() error
- func (m *RethinkManager) DeleteKey(set, kid string) error
- func (m *RethinkManager) DeleteKeySet(set string) error
- func (m *RethinkManager) GetKey(set, kid string) (*jose.JsonWebKeySet, error)
- func (m *RethinkManager) GetKeySet(set string) (*jose.JsonWebKeySet, error)
- func (m *RethinkManager) SetUpIndex() error
- func (m *RethinkManager) Watch(ctx context.Context)
- type SQLManager
- func (m *SQLManager) AddKey(set string, key *jose.JsonWebKey) error
- func (m *SQLManager) AddKeySet(set string, keys *jose.JsonWebKeySet) error
- func (s *SQLManager) CreateSchemas() error
- func (m *SQLManager) DeleteKey(set, kid string) error
- func (m *SQLManager) DeleteKeySet(set string) error
- func (m *SQLManager) GetKey(set, kid string) (*jose.JsonWebKeySet, error)
- func (m *SQLManager) GetKeySet(set string) (*jose.JsonWebKeySet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustRSAPrivate ¶
func MustRSAPrivate(key *jose.JsonWebKey) *rsa.PrivateKey
func MustRSAPublic ¶
func PEMBlockForKey ¶
func ToRSAPrivate ¶
func ToRSAPrivate(key *jose.JsonWebKey) (*rsa.PrivateKey, error)
func ToRSAPublic ¶
Types ¶
type ECDSA256Generator ¶
type ECDSA256Generator struct{}
func (*ECDSA256Generator) Generate ¶
func (g *ECDSA256Generator) Generate(id string) (*jose.JsonWebKeySet, error)
type ECDSA521Generator ¶
type ECDSA521Generator struct{}
func (*ECDSA521Generator) Generate ¶
func (g *ECDSA521Generator) Generate(id string) (*jose.JsonWebKeySet, error)
type HS256Generator ¶
type HS256Generator struct {
Length int
}
func (*HS256Generator) Generate ¶
func (g *HS256Generator) Generate(id string) (*jose.JsonWebKeySet, error)
type HTTPManager ¶
func (*HTTPManager) AddKey ¶
func (m *HTTPManager) AddKey(set string, key *jose.JsonWebKey) error
func (*HTTPManager) AddKeySet ¶
func (m *HTTPManager) AddKeySet(set string, keys *jose.JsonWebKeySet) error
func (*HTTPManager) CreateKeys ¶
func (m *HTTPManager) CreateKeys(set, algorithm string) (*jose.JsonWebKeySet, error)
func (*HTTPManager) DeleteKey ¶
func (m *HTTPManager) DeleteKey(set, kid string) error
func (*HTTPManager) DeleteKeySet ¶
func (m *HTTPManager) DeleteKeySet(set string) error
func (*HTTPManager) GetKey ¶
func (m *HTTPManager) GetKey(set, kid string) (*jose.JsonWebKeySet, error)
func (*HTTPManager) GetKeySet ¶
func (m *HTTPManager) GetKeySet(set string) (*jose.JsonWebKeySet, error)
type Handler ¶
type Handler struct { Manager Manager Generators map[string]KeyGenerator H herodot.Herodot W firewall.Firewall }
func (*Handler) Create ¶
func (h *Handler) Create(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Handler) DeleteKey ¶
func (h *Handler) DeleteKey(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Handler) DeleteKeySet ¶
func (h *Handler) DeleteKeySet(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Handler) GetGenerators ¶
func (h *Handler) GetGenerators() map[string]KeyGenerator
func (*Handler) GetKey ¶
func (h *Handler) GetKey(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Handler) GetKeySet ¶
func (h *Handler) GetKeySet(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Handler) SetRoutes ¶
func (h *Handler) SetRoutes(r *httprouter.Router)
func (*Handler) UpdateKey ¶
func (h *Handler) UpdateKey(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Handler) UpdateKeySet ¶
func (h *Handler) UpdateKeySet(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
type KeyGenerator ¶
type MemoryManager ¶
func (*MemoryManager) AddKey ¶
func (m *MemoryManager) AddKey(set string, key *jose.JsonWebKey) error
func (*MemoryManager) AddKeySet ¶
func (m *MemoryManager) AddKeySet(set string, keys *jose.JsonWebKeySet) error
func (*MemoryManager) DeleteKey ¶
func (m *MemoryManager) DeleteKey(set, kid string) error
func (*MemoryManager) DeleteKeySet ¶
func (m *MemoryManager) DeleteKeySet(set string) error
func (*MemoryManager) GetKey ¶
func (m *MemoryManager) GetKey(set, kid string) (*jose.JsonWebKeySet, error)
func (*MemoryManager) GetKeySet ¶
func (m *MemoryManager) GetKeySet(set string) (*jose.JsonWebKeySet, error)
type RS256Generator ¶
type RS256Generator struct {
KeyLength int
}
func (*RS256Generator) Generate ¶
func (g *RS256Generator) Generate(id string) (*jose.JsonWebKeySet, error)
type RedisManager ¶ added in v0.6.5
func (*RedisManager) AddKey ¶ added in v0.6.5
func (m *RedisManager) AddKey(set string, key *jose.JsonWebKey) error
func (*RedisManager) AddKeySet ¶ added in v0.6.5
func (m *RedisManager) AddKeySet(set string, keys *jose.JsonWebKeySet) error
func (*RedisManager) DeleteKey ¶ added in v0.6.5
func (m *RedisManager) DeleteKey(set, kid string) error
func (*RedisManager) DeleteKeySet ¶ added in v0.6.5
func (m *RedisManager) DeleteKeySet(set string) error
func (*RedisManager) GetKey ¶ added in v0.6.5
func (m *RedisManager) GetKey(set, kid string) (*jose.JsonWebKeySet, error)
func (*RedisManager) GetKeySet ¶ added in v0.6.5
func (m *RedisManager) GetKeySet(set string) (*jose.JsonWebKeySet, error)
type RethinkManager ¶
type RethinkManager struct { Session *r.Session Table r.Term sync.RWMutex Cipher *AEAD Keys map[string]jose.JsonWebKeySet }
func (*RethinkManager) AddKey ¶
func (m *RethinkManager) AddKey(set string, key *jose.JsonWebKey) error
func (*RethinkManager) AddKeySet ¶
func (m *RethinkManager) AddKeySet(set string, keys *jose.JsonWebKeySet) error
func (*RethinkManager) ColdStart ¶
func (m *RethinkManager) ColdStart() error
func (*RethinkManager) DeleteKey ¶
func (m *RethinkManager) DeleteKey(set, kid string) error
func (*RethinkManager) DeleteKeySet ¶
func (m *RethinkManager) DeleteKeySet(set string) error
func (*RethinkManager) GetKey ¶
func (m *RethinkManager) GetKey(set, kid string) (*jose.JsonWebKeySet, error)
func (*RethinkManager) GetKeySet ¶
func (m *RethinkManager) GetKeySet(set string) (*jose.JsonWebKeySet, error)
func (*RethinkManager) SetUpIndex ¶
func (m *RethinkManager) SetUpIndex() error
func (*RethinkManager) Watch ¶
func (m *RethinkManager) Watch(ctx context.Context)
type SQLManager ¶ added in v0.6.0
func (*SQLManager) AddKey ¶ added in v0.6.0
func (m *SQLManager) AddKey(set string, key *jose.JsonWebKey) error
func (*SQLManager) AddKeySet ¶ added in v0.6.0
func (m *SQLManager) AddKeySet(set string, keys *jose.JsonWebKeySet) error
func (*SQLManager) CreateSchemas ¶ added in v0.6.0
func (s *SQLManager) CreateSchemas() error
func (*SQLManager) DeleteKey ¶ added in v0.6.0
func (m *SQLManager) DeleteKey(set, kid string) error
func (*SQLManager) DeleteKeySet ¶ added in v0.6.0
func (m *SQLManager) DeleteKeySet(set string) error
func (*SQLManager) GetKey ¶ added in v0.6.0
func (m *SQLManager) GetKey(set, kid string) (*jose.JsonWebKeySet, error)
func (*SQLManager) GetKeySet ¶ added in v0.6.0
func (m *SQLManager) GetKeySet(set string) (*jose.JsonWebKeySet, error)
Click to show internal directories.
Click to hide internal directories.