(function(root, factory) { if (typeof exports === 'object') { // CommonJS factory(exports, module); } else if (typeof define === 'function' && define.amd) { // AMD define(['exports', 'module'], factory); } }(this, function(exports, module) { /** * ANONYMOUS `Mechanism` constructor. * * This class implements the ANONYMOUS SASL mechanism. * * The ANONYMOUS SASL mechanism provides support for permitting anonymous * access to various services * * References: * - [RFC 4505](http://tools.ietf.org/html/rfc4505) * * @api public */ function Mechanism() { } Mechanism.prototype.name = 'ANONYMOUS'; Mechanism.prototype.clientFirst = true; /** * Encode a response using optional trace information. * * Options: * - `trace` trace information (optional) * * @param {Object} cred * @api public */ Mechanism.prototype.response = function(cred) { return cred.trace || ''; }; /** * Decode a challenge issued by the server. * * @param {String} chal * @api public */ Mechanism.prototype.challenge = function(chal) { }; exports = module.exports = Mechanism; }));