services

package
Version: v0.0.0-...-4fd71c7 Latest Latest
Warning

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

Go to latest
Published: May 24, 2016 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package services implements services which provides JWK set.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrInvalidBody

type ErrInvalidBody string

An ErrInvalidBody represents an error when body content cannot be decoded.

func (ErrInvalidBody) Error

func (e ErrInvalidBody) Error() string

Error returns string representation of current instance error.

type SetClient

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

A SetClient represents a client for a service that provides the key set used for signing or encrypting session tokens.

func NewSetClient

func NewSetClient(url string) *SetClient

NewSetClient creates a new instace of a client for key set service.

func (*SetClient) GetCerts

func (c *SetClient) GetCerts(tracer tlog.Tracer) (*jwk.Set, error)

GetCerts returns the key set from the service.

type SetServer

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

A SetServer represents a server which provides the key set used for signing or encrypting session tokens.

func NewSetServer

func NewSetServer(adpSet adapters.Set) *SetServer

NewSetServer creates a new instance of SetServer.

func (*SetServer) GetCerts

func (s *SetServer) GetCerts(tracer tlog.Tracer) (*jwk.Set, error)

GetCerts returns entire key set.

type SetService

type SetService interface {
	GetCerts(tlog.Tracer) (*jwk.Set, error)
}

A SetService defines an interface for a service that provides the key set used for signing or encrypting session tokens.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL