public void handle(Callback[] callbacks) throws IOException,
      UnsupportedCallbackException {
    for (Callback cb : callbacks) {
      if (cb instanceof TextOutputCallback) {
        // TODO: Implement this
        throw new UnsupportedCallbackException(cb);
      } else if (cb instanceof NameCallback) {
        NameCallback nc = (NameCallback) cb;
        nc.setName(username);
      } else if (cb instanceof PasswordCallback) {
        PasswordCallback pc = (PasswordCallback) cb;
        pc.setPassword(password);
      } else {
        throw new UnsupportedCallbackException(cb);
      }
    }
  }
Construct a plain callback handler with the given username and password.

@param u the username
@param p the password
src/main/java/net/spy/memcached/auth/PlainCallbackHandler.java