new PlainTextSaslAuthenticator(username, password, authzidopt)
Creates a new instance of PlainTextSaslAuthenticator.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
username |
string | Username to log into the server. | |
password |
string | Password for the user. | |
authzid |
string |
<optional> |
Optional id |
Methods
evaluateChallenge(challenge) → {Object}
Evaluates the challenge from the server and returns appropriate response.
Parameters:
Name | Type | Description |
---|---|---|
challenge |
String | Challenge string presented by the server. |
Returns:
A Promise that resolves to a valid sasl response object.
- Type
- Object