Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScramServer ¶
type ScramServer struct {
// contains filtered or unexported fields
}
ScramServer is a server implementation of SCRAM auth with a slightly improved interface.
func (*ScramServer) Password ¶
func (s *ScramServer) Password() string
Password returns the password which was produced by SCRAM.
func (*ScramServer) SetPassword ¶
func (s *ScramServer) SetPassword(password string) error
SetPassword sets the salted password retrieved from the store for the username.
func (*ScramServer) Start ¶
func (s *ScramServer) Start(in []byte, hashFn string) ([]byte, error)
Start performs the first step of the SCRAM process. Returns nil if SCRAM completes.
func (*ScramServer) Step ¶
func (s *ScramServer) Step(in []byte) ([]byte, error)
Step performs one step of the SCRAM process. Returns nil if SCRAM completes.
func (*ScramServer) Username ¶
func (s *ScramServer) Username() string
Username returns the password which was produced by SCRAM.
Click to show internal directories.
Click to hide internal directories.