rsakey

package
v0.11.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	H herodot.Writer
	M Manager
}

func (*Handler) SetRoutes

func (h *Handler) SetRoutes(r *httprouter.Router)

func (*Handler) WellKnown

func (h *Handler) WellKnown(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

swagger:route GET /.well-known/jwks.json getWellKnown

Returns well known keys

This endpoint returns public keys for validating the ID tokens issued by ORY Oathkeeper.

Produces:
- application/json

Schemes: http, https

Responses:
  200: jsonWebKeySet
  401: genericError
  403: genericError

type HydraManager

type HydraManager struct {
	SDK hydra.SDK
	Set string
	// contains filtered or unexported fields
}

func (*HydraManager) Algorithm

func (m *HydraManager) Algorithm() string

func (*HydraManager) PrivateKey

func (m *HydraManager) PrivateKey() (*rsa.PrivateKey, error)

func (*HydraManager) PublicKey

func (m *HydraManager) PublicKey() (*rsa.PublicKey, error)

func (*HydraManager) PublicKeyID

func (m *HydraManager) PublicKeyID() string

func (*HydraManager) Refresh

func (m *HydraManager) Refresh() error

type LocalManager

type LocalManager struct {
	KeyStrength int
	// contains filtered or unexported fields
}

func (*LocalManager) Algorithm

func (m *LocalManager) Algorithm() string

func (*LocalManager) PrivateKey

func (m *LocalManager) PrivateKey() (*rsa.PrivateKey, error)

func (*LocalManager) PublicKey

func (m *LocalManager) PublicKey() (*rsa.PublicKey, error)

func (*LocalManager) PublicKeyID

func (m *LocalManager) PublicKeyID() string

func (*LocalManager) Refresh

func (m *LocalManager) Refresh() error

type Manager

type Manager interface {
	Refresh() error
	PrivateKey() (*rsa.PrivateKey, error)
	PublicKey() (*rsa.PublicKey, error)
	PublicKeyID() string
	Algorithm() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL