session.write(FtpReplyUtil.translate(session, request, context, 234, "AUTH.SSL", null));
} catch(FtpException ex) {
throw ex;
} catch(Exception ex) {
LOG.warn("AUTH.execute()", ex);
throw new FtpException("AUTH.execute()", ex);
}
}
else if(authType.equals("TLS")) {
try {
secureSession(session, "TLS");
session.write(FtpReplyUtil.translate(session, request, context, 234, "AUTH.TLS", null));
} catch(FtpException ex) {
throw ex;
} catch(Exception ex) {
LOG.warn("AUTH.execute()", ex);
throw new FtpException("AUTH.execute()", ex);
}
}
else {
session.write(FtpReplyUtil.translate(session, request, context, FtpReply.REPLY_502_COMMAND_NOT_IMPLEMENTED, "AUTH", null));
}