authenticators

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractAuthenticator

type AbstractAuthenticator struct{}

func (AbstractAuthenticator) GetAdvertiseAuthentication

func (aa AbstractAuthenticator) GetAdvertiseAuthentication(authType []string) string

func (AbstractAuthenticator) GetMailSize

func (aa AbstractAuthenticator) GetMailSize(login string, defaultSize int64) int64

type AuthStore

type AuthStore struct {
	CRAMMD5challenge string
	IsAuthenticated  bool
}

type Authenticator

type Authenticator interface {
	VerifyLOGIN(login, password string) bool
	//VerifyPLAIN(login, password string) bool
	//VerifyGSSAPI(login, password string) bool
	//VerifyDIGESTMD5(login, password string) bool
	//VerifyMD5(login, password string) bool
	VerifyCRAMMD5(challenge, authString string) bool
	GenerateCRAMMD5Challenge() (string, error)
	ExtractLoginFromAuthString(authString string) string
	DecodeLogin(login string) (string, error)

	GetAdvertiseAuthentication(authType []string) string

	GetMailSize(login string, defaultSize int64) int64
}

type AuthenticatorCreator

type AuthenticatorCreator func(config backends.BackendConfig) Authenticator

Jump to

Keyboard shortcuts

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