Documentation ¶
Index ¶
Constants ¶
const Type = "PLAIN"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { }
Client represents a PLAIN mech.
type ClientContext ¶
ClientContext represents a PLAIN client context.
func NewClientContext ¶
NewClientContext returns a new PLAIN client context.
func (*ClientContext) Dispose ¶
func (ctx *ClientContext) Dispose() error
Dispose disposes the context.
func (*ClientContext) Done ¶ added in v1.2.0
func (ctx *ClientContext) Done() bool
Done returns true if the context is completed.
func (*ClientContext) Mechanism ¶ added in v1.2.1
func (ctx *ClientContext) Mechanism() mech.Mechanism
Mechanism returns the mechanism.
func (*ClientContext) Step ¶
func (ctx *ClientContext) Step() int
Step returns the current step number. The step number is incremented by one after each call to Next.
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message represents a SASL PLAIN message.
func NewMessageFrom ¶
NewMessageFrom returns a new message from the given value.
func NewMessageWith ¶
NewMessageWith returns a new message with the given authzid, authcid, and passwd.
func (*Message) ParseBytes ¶
ParseBytes parses the message bytes.
type Server ¶
type Server struct { }
Server represents a PLAIN mech.
type ServerContext ¶
type ServerContext struct { mech.Store *cred.CredentialStore // contains filtered or unexported fields }
ServerContext represents a PLAIN server context.
func NewServerContext ¶
NewServerContext returns a new PLAIN server context.
func (*ServerContext) Dispose ¶
func (ctx *ServerContext) Dispose() error
Dispose disposes the context.
func (*ServerContext) Done ¶ added in v1.2.0
func (ctx *ServerContext) Done() bool
Done returns true if the context is completed.
func (*ServerContext) Mechanism ¶ added in v1.2.1
func (ctx *ServerContext) Mechanism() mech.Mechanism
Mechanism returns the mechanism.
func (*ServerContext) Step ¶
func (ctx *ServerContext) Step() int
Step returns the current step number. The step number is incremented by one after each call to Next.