rsakey

package
v1.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2018 License: Apache-2.0 Imports: 13 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 NewHandler added in v0.15.0

func NewHandler(
	h herodot.Writer,
	m Manager,
) *Handler

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() (interface{}, error)

func (*HydraManager) PublicKey

func (m *HydraManager) PublicKey() (interface{}, error)

func (*HydraManager) PublicKeyID

func (m *HydraManager) PublicKeyID() string

func (*HydraManager) Refresh

func (m *HydraManager) Refresh() error

type LocalHS256Manager added in v0.15.0

type LocalHS256Manager struct {
	// contains filtered or unexported fields
}

func NewLocalHS256Manager added in v0.15.0

func NewLocalHS256Manager(key []byte) *LocalHS256Manager

func (*LocalHS256Manager) Algorithm added in v0.15.0

func (m *LocalHS256Manager) Algorithm() string

func (*LocalHS256Manager) PrivateKey added in v0.15.0

func (m *LocalHS256Manager) PrivateKey() (interface{}, error)

func (*LocalHS256Manager) PublicKey added in v0.15.0

func (m *LocalHS256Manager) PublicKey() (interface{}, error)

func (*LocalHS256Manager) PublicKeyID added in v0.15.0

func (m *LocalHS256Manager) PublicKeyID() string

func (*LocalHS256Manager) Refresh added in v0.15.0

func (m *LocalHS256Manager) Refresh() error

type LocalRS256Manager added in v0.15.0

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

func (*LocalRS256Manager) Algorithm added in v0.15.0

func (m *LocalRS256Manager) Algorithm() string

func (*LocalRS256Manager) PrivateKey added in v0.15.0

func (m *LocalRS256Manager) PrivateKey() (interface{}, error)

func (*LocalRS256Manager) PublicKey added in v0.15.0

func (m *LocalRS256Manager) PublicKey() (interface{}, error)

func (*LocalRS256Manager) PublicKeyID added in v0.15.0

func (m *LocalRS256Manager) PublicKeyID() string

func (*LocalRS256Manager) Refresh added in v0.15.0

func (m *LocalRS256Manager) Refresh() error

type Manager

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

Jump to

Keyboard shortcuts

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