auth

package
v0.0.0-...-bb6d4ad Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2019 License: MIT Imports: 2 Imported by: 0

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
)

Jump to

Keyboard shortcuts

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