session

package
v7.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 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 Builder

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

func (*Builder) AuthenticateWith

func (b *Builder) AuthenticateWith(handlers ...callback.Handler) session.Builder

func (*Builder) ConnectTo

func (b *Builder) ConnectTo(url *url.URL) session.Builder

func (*Builder) Create

func (b *Builder) Create() (session.Session, error)

func (*Builder) InRealm

func (b *Builder) InRealm(realm string) session.Builder

func (*Builder) TimeoutRequestAfter

func (b *Builder) TimeoutRequestAfter(d time.Duration) session.Builder

func (*Builder) WithConnection

func (b *Builder) WithConnection(connection client.Connection) session.Builder

func (*Builder) WithTree

func (b *Builder) WithTree(tree string) session.Builder

type DefaultSession

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

func (*DefaultSession) Logout

func (s *DefaultSession) Logout() error

func (*DefaultSession) Token

func (s *DefaultSession) Token() string

func (*DefaultSession) Valid

func (s *DefaultSession) Valid() (bool, error)

type PoPSession

type PoPSession struct {
	DefaultSession
	// contains filtered or unexported fields
}

PoPSession is produced when the thing was authenticated using a signed JWT.

func (*PoPSession) Logout added in v7.2.0

func (s *PoPSession) Logout() error

func (*PoPSession) SignRequestBody added in v7.2.0

func (s *PoPSession) SignRequestBody(url, version string, body interface{}) (signedJWT string, err error)

SignRequestBody will sign the request in order to satisfy the Proof of Possession restriction added to AM sessions.

func (*PoPSession) Valid added in v7.2.0

func (s *PoPSession) Valid() (bool, error)

Jump to

Keyboard shortcuts

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