Class MessageC2SLoginSendNonceNameAndPassword

java.lang.Object
marauroa.common.net.message.Message
marauroa.common.net.message.MessageSendByteArray
marauroa.common.net.message.MessageC2SLoginSendNonceNameAndPassword
All Implemented Interfaces:
Serializable

public class MessageC2SLoginSendNonceNameAndPassword extends MessageSendByteArray
This message indicate the server that the client wants to login and send the needed info: username and password to login to server. The password is protected by Crypt(xor(xor(client nonce, server nonce), password))
See Also:
Message
  • Constructor Details

    • MessageC2SLoginSendNonceNameAndPassword

      public MessageC2SLoginSendNonceNameAndPassword()
      Constructor for allowing creation of an empty message
    • MessageC2SLoginSendNonceNameAndPassword

      public MessageC2SLoginSendNonceNameAndPassword(Channel source, byte[] nonce, String username, byte[] password)
      Constructor with a TCP/IP source/destination of the message and the name of the choosen character.
      Parameters:
      source - The TCP/IP address associated to this message
      nonce - random number to prevent replay attacks
      username - the username of the user that wants to login
      password - the plain password of the user that wants to login
  • Method Details