(userName, password, authzID string)
| 224 | } |
| 225 | |
| 226 | func (sc *scramClient) Begin(userName, password, authzID string) (err error) { |
| 227 | sc.Client, err = sc.HashGeneratorFcn.NewClient(userName, password, authzID) |
| 228 | if err != nil { |
| 229 | return err |
| 230 | } |
| 231 | sc.ClientConversation = sc.Client.NewConversation() |
| 232 | return nil |
| 233 | } |
| 234 | |
| 235 | func (sc *scramClient) Step(challenge string) (response string, err error) { |
| 236 | response, err = sc.ClientConversation.Step(challenge) |