Documentation ¶
Index ¶
- type Builder
- func (b *Builder) AuthenticateWith(handlers ...callback.Handler) session.Builder
- func (b *Builder) ConnectTo(url *url.URL) session.Builder
- func (b *Builder) Create() (session.Session, error)
- func (b *Builder) InRealm(realm string) session.Builder
- func (b *Builder) TimeoutRequestAfter(d time.Duration) session.Builder
- func (b *Builder) WithConnection(connection client.Connection) session.Builder
- func (b *Builder) WithTree(tree string) session.Builder
- type DefaultSession
- type PoPSession
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 (*Builder) TimeoutRequestAfter ¶
func (*Builder) WithConnection ¶
func (b *Builder) WithConnection(connection client.Connection) 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)
Click to show internal directories.
Click to hide internal directories.