webcas

package
v1.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebCAS

type WebCAS struct {
	*resthandler.AuthHandler
	// contains filtered or unexported fields
}

WebCAS represents a WebCAS handler + client for the backing CAS.

func New

func New(authCfg *resthandler.Config, s spi.Store, verifier signatureVerifier,
	casClient casapi.Client, tm authTokenManager,
) *WebCAS

New returns a new WebCAS, which contains a REST handler that implements WebCAS as defined in https://trustbloc.github.io/did-method-orb/#webcas.

func (*WebCAS) Handler

func (w *WebCAS) Handler() common.HTTPRequestHandler

Handler returns the HTTP REST handler for the WebCAS service.

func (*WebCAS) Method

func (w *WebCAS) Method() string

Method returns the HTTP REST method for the WebCAS service.

func (*WebCAS) Path

func (w *WebCAS) Path() string

Path returns the HTTP REST endpoint for the WebCAS service.

Jump to

Keyboard shortcuts

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