Implements the default plain text ("PLAIN") Memcached authentication.
Either use the parametrized constructor, or pass the "userName" and "password" parameters during initalization.
Inheritance: ISaslAuthenticationProvider
Example #1
0
 void ISaslAuthenticationProvider.Initialize(Dictionary <string, object> parameters)
 {
     if (parameters != null)
     {
         this._authenticateData = PlainTextAuthenticator.CreateAuthenticateData(
             this.GetParameter(parameters, "zone"),
             this.GetParameter(parameters, "userName"),
             this.GetParameter(parameters, "password")
             );
     }
 }
Example #2
0
 public PlainTextAuthenticator(string zone, string userName, string password)
 {
     this._authenticateData = PlainTextAuthenticator.CreateAuthenticateData(zone, userName, password);
 }