Class: SaslMechanismPlain

SaslMechanismPlain(optionsopt)

new SaslMechanismPlain(optionsopt)

Creates a new instance of SaslMechanismPlain.
Parameters:
Name Type Attributes Description
options Object <optional>
The mechanism options.
Properties
Name Type Attributes Description
authzid String <optional>
The identity of the client.
username String <optional>
The identity of user with access to server.
password String <optional>
The password of user with access to server.
Source:

Members

name

Returns the name of the mechanism
Source:

Methods

_hasInitialResponse(challenge) → {Boolean}

Checks challenge to see if we have the initial sasl response from the server.
Parameters:
Name Type Description
challenge String The challenge string from the server.
Source:
Returns:
Type
Boolean

_saslArgument(authzid, username, password)

Generates a base64 encoded sasl argument based on the given parameters.
Parameters:
Name Type Description
authzid String Identitiy of the client.
username String The identity of user with access to server.
password String The password of user with access to server.
Source:

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.
Source:
Returns:
A Promise that resolves to a valid sasl response object.
Type
Object