Esempio n. 1
0
  @Override
  public Response executeImpl() {
    Response resp = new Response(commandId);

    resp.genStandardPrefixedResponseLineWithContent(
        commandKey, false, " IMAP4rev1"); // STARTTLS AUTH=PLAIN LOGINDISABLED";)

    genCompletedResponseLine(resp);

    return resp;
  }
Esempio n. 2
0
 @Override
 public Response executeImpl() throws AuthMethodNotSupportedException {
   method = commandArgs.toUpperCase();
   Response resp = new Response(commandId);
   if (StringUtils.equals("PLAIN", commandArgs.toUpperCase())) {
     resp.genWaitingForNextCompletionResponseLine();
     waitingForCompletion = true;
     return resp;
   }
   AuthMethodNotSupportedException e =
       new AuthMethodNotSupportedException(commandId, commandKey, commandArgs, method);
   e.setRequireBadResponse(false);
   throw e;
 }