protected void doPlainAuth(String initialClientResponse,ImapSession session,String tag,ImapCommand command,Responder responder){
  String pass=null;
  String user=null;
  try {
    String userpass=new String(Base64.decodeBase64(initialClientResponse));
    StringTokenizer authTokenizer=new StringTokenizer(userpass,"\0");
    String authorize_id=authTokenizer.nextToken();
    user=authTokenizer.nextToken();
    try {
      pass=authTokenizer.nextToken();
    }
 catch (    java.util.NoSuchElementException _) {
      pass=user;
      user=authorize_id;
    }
    authTokenizer=null;
  }
 catch (  Exception e) {
  }
  doAuth(user,pass,session,tag,command,responder,HumanReadableText.AUTHENTICATION_FAILED);
}

protected void doPlainAuth ( String initialClientResponse , ImapSession session , String tag , ImapCommand command , Responder responder ) { String pass = null ; String user = null ; try { String userpass = new String ( Base64 . decodeBase64 ( initialClientResponse ) ) ; StringTokenizer authTokenizer = new StringTokenizer ( userpass , "\0" ) ; String authorize_id = authTokenizer . nextToken ( ) ; user = authTokenizer . nextToken ( ) ; try { pass = authTokenizer . nextToken ( ) ; } catch ( java . util . NoSuchElementException _ ) { pass = user ; user = authorize_id ; } authTokenizer = null ; } catch ( Exception e ) { } doAuth ( user , pass , session , tag , command , responder , HumanReadableText . AUTHENTICATION_FAILED ) ; }
parse the initialclientresponse and do a plain auth with it
