Documentation
¶
Overview ¶
Package SASL implements Simple Authentication and Security Layer, RFC 4422.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Name as used in SMTP AUTH, e.g. PLAIN, CRAM-MD5, SCRAM-SHA-256. // cleartextCredentials indicates if credentials are exchanged in clear text, which influences whether they are logged. Info() (name string, cleartextCredentials bool) // Next is called for each step of the SASL communication. The first call has a nil // fromServer and serves to get a possible "initial response" from the client. If // the client sends its final message it indicates so with last. Returning an error // aborts the authentication attempt. // For the first toServer ("initial response"), a nil toServer indicates there is // no data, which is different from a non-nil zero-length toServer. Next(fromServer []byte) (toServer []byte, last bool, err error) }
Client is a SASL client
func NewClientCRAMMD5 ¶
NewClientCRAMMD5 returns a client for SASL CRAM-MD5 authentication.
func NewClientPlain ¶
NewClientPlain returns a client for SASL PLAIN authentication.
func NewClientSCRAMSHA1 ¶
NewClientSCRAMSHA1 returns a client for SASL SCRAM-SHA-1 authentication.
func NewClientSCRAMSHA256 ¶
NewClientSCRAMSHA256 returns a client for SASL SCRAM-SHA-256 authentication.
Click to show internal directories.
Click to hide internal directories.