authenvelope

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: GPL-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Challenge

type Challenge struct {
	Challenge string
}

func NewChallenge

func NewChallenge(c string) (a *Challenge)

func (*Challenge) Bytes

func (a *Challenge) Bytes() []byte

func (*Challenge) Label

func (a *Challenge) Label() string

func (*Challenge) MarshalJSON

func (a *Challenge) MarshalJSON() ([]byte, error)

func (*Challenge) String

func (a *Challenge) String() string

func (*Challenge) ToArray

func (a *Challenge) ToArray() array.T

func (*Challenge) Unmarshal

func (a *Challenge) Unmarshal(buf *text.Buffer) (err error)

type Response

type Response struct {
	Event *event.T
}

func NewResponse

func NewResponse(ac *Challenge, rl string) (ae *Response)

NewResponse creates an Response response from an Challenge.

The caller must sign the embedded event before sending it back to authenticate.

func (*Response) Bytes

func (a *Response) Bytes() []byte

func (*Response) Label

func (a *Response) Label() string

func (*Response) MarshalJSON

func (a *Response) MarshalJSON() ([]byte, error)

func (*Response) String

func (a *Response) String() string

func (*Response) ToArray

func (a *Response) ToArray() array.T

func (*Response) Unmarshal

func (a *Response) Unmarshal(buf *text.Buffer) (err error)

Jump to

Keyboard shortcuts

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