scramserver

package
v0.0.1-78 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

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