Documentation
¶
Overview ¶
Package scram provides an implementation of SCRAM-SHA-256 subset.
Index ¶
- type Conv
- func (c *Conv) ClientFinal(payload string) (string, string, error)
- func (c *Conv) ClientFirst(payload string) (string, error)
- func (c *Conv) ServerFinal(res wirebson.RawDocument) (string, error)
- func (c *Conv) ServerFirst(res wirebson.RawDocument) (string, error)
- func (c *Conv) Succeed() bool
- func (c *Conv) Username() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conv ¶
type Conv struct {
// contains filtered or unexported fields
}
Conv represents a server SCRAM conversation.
Conversation is not restartable. A new instance should be created for each conversation.
func (*Conv) ClientFinal ¶
ClientFinal processes the client-final message and returns the auth message and the client proof.
func (*Conv) ClientFirst ¶
ClientFirst processes the client-first message and returns the username.
func (*Conv) ServerFinal ¶
func (c *Conv) ServerFinal(res wirebson.RawDocument) (string, error)
ServerFinal processes the AuthenticateWithScramSha256's result and returns the server-final message.
func (*Conv) ServerFirst ¶
func (c *Conv) ServerFirst(res wirebson.RawDocument) (string, error)
ServerFirst processes the ScramSha256GetSaltAndIterations's result and returns the server-first message.
Click to show internal directories.
Click to hide internal directories.