Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnSupportedMethod = errors.New("unsupported authentication method")
ErrUnSupportedMethod returns when method has not been supported.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface {
Authenticate(conn io.ReadWriter) error
}
type Method ¶
type Method byte
Method represents auth method.
const ( // MethodNotRequired represents no authentication required. MethodNotRequired Method = iota // 0x00 // MethodGSSAPI represents use GSSAPI. // This implements based on https://tools.ietf.org/html/rfc1961 MethodGSSAPI // MethodUsernamePassword represents use username/password. // This implements based on https://tools.ietf.org/html/rfc1929 MethodUsernamePassword // MethodNoAcceptableMethods represents no acceptable authentication methods. MethodNoAcceptableMethods Method = 0xff )
Click to show internal directories.
Click to hide internal directories.