new SaslMechanismPlain(optionsopt)
    Creates a new instance of SaslMechanismPlain.
    Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | 
            
            Object | 
                
                    <optional> | 
            
            
            The mechanism options.
                Properties
  | 
        
Members
name
    Returns the name of the mechanism
        
    
    
        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. | 
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. | 
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