net.spy.memcached.auth
Class PlainCallbackHandler

java.lang.Object
  extended by net.spy.memcached.auth.PlainCallbackHandler
All Implemented Interfaces:
CallbackHandler

public class PlainCallbackHandler
extends Object
implements CallbackHandler

Callback handler for doing plain auth.


Constructor Summary
PlainCallbackHandler(String u, String p)
          Construct a plain callback handler with the given username and password.
 
Method Summary
 void handle(Callback[] callbacks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainCallbackHandler

public PlainCallbackHandler(String u,
                            String p)
Construct a plain callback handler with the given username and password.

Parameters:
u - the username
p - the password
Method Detail

handle

public void handle(Callback[] callbacks)
            throws IOException,
                   UnsupportedCallbackException
Specified by:
handle in interface CallbackHandler
Throws:
IOException
UnsupportedCallbackException