net.spy.memcached.auth
Class PlainCallbackHandler
java.lang.Object
net.spy.memcached.auth.PlainCallbackHandler
- All Implemented Interfaces:
- CallbackHandler
public class PlainCallbackHandler
- extends Object
- implements CallbackHandler
Callback handler for doing plain auth.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlainCallbackHandler
public PlainCallbackHandler(String u,
String p)
- Construct a plain callback handler with the given username and password.
- Parameters:
u - the usernamep - the password
handle
public void handle(Callback[] callbacks)
throws IOException,
UnsupportedCallbackException
- Specified by:
handle in interface CallbackHandler
- Throws:
IOException
UnsupportedCallbackException