Package marauroa.common.net.message

Examples of marauroa.common.net.message.MessageC2SLoginSendNonceNameAndPassword


            }
            byte[] cryptedSeed = key.encodeByteArray(b3);
            netMan.addMessage(new MessageC2SLoginSendNonceNamePasswordAndSeed(null,
                  clientNonce, username, cryptedPassword, cryptedSeed));
          } else {
            netMan.addMessage(new MessageC2SLoginSendNonceNameAndPassword(null,
                  clientNonce, username, cryptedPassword));
          }
          break;
        }
          /* Server replied with ACK to login operation */
 
View Full Code Here


  private SecuredLoginInfo fillLoginInfo(Message msg, PlayerEntry entry) {
    SecuredLoginInfo info = entry.loginInformations;

    if (msg instanceof MessageC2SLoginSendNonceNameAndPassword) {
      MessageC2SLoginSendNonceNameAndPassword msgLogin = (MessageC2SLoginSendNonceNameAndPassword) msg;
      info.clientNonce = msgLogin.getHash();
      info.username = msgLogin.getUsername();
      info.password = msgLogin.getPassword();
    } else {
      MessageC2SLoginSendNonceNamePasswordAndSeed msgLogin = (MessageC2SLoginSendNonceNamePasswordAndSeed) msg;
      info.clientNonce = msgLogin.getHash();
      info.username = msgLogin.getUsername();
      info.password = msgLogin.getPassword();
      info.seed = decode(info, msgLogin.getSeed());
    }
    return info;
  }
View Full Code Here

TOP

Related Classes of marauroa.common.net.message.MessageC2SLoginSendNonceNameAndPassword

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.