secctx

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CookieStore

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

CookieStore can store and retrieve SSPI context handles to/from an encrypted Cookie.

func NewCookieStore

func NewCookieStore() *CookieStore

NewCookieStore creates a new CookieStore for storing and retrieving of SSPI context handles to/from encrypted Cookies

func (*CookieStore) GetHandle

func (s *CookieStore) GetHandle(r *http.Request) (interface{}, error)

GetHandle retrieves a *websspi.CtxtHandle value from the store

func (*CookieStore) SetHandle

func (s *CookieStore) SetHandle(r *http.Request, w http.ResponseWriter, contextHandle interface{}) error

SetHandle saves a *websspi.CtxtHandle value to the store

type Store

type Store interface {
	// GetHandle retrieves a *websspi.CtxtHandle value from the store
	GetHandle(r *http.Request) (interface{}, error)
	// SetHandle saves a *websspi.CtxtHandle value to the store
	SetHandle(r *http.Request, w http.ResponseWriter, contextHandle interface{}) error
}

Store is an interface for storage of SSPI context handles. SSPI context handles are Windows API handles and have nothing to do with the "context" package in Go.

Jump to

Keyboard shortcuts

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