Class MessageC2SLoginSendNonceNamePasswordAndSeed

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

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

    • MessageC2SLoginSendNonceNamePasswordAndSeed

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

      public MessageC2SLoginSendNonceNamePasswordAndSeed(Channel source, byte[] nonce, String username, byte[] password, byte[] seed)
      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
      seed - the seed
  • Method Details

    • getUsername

      public String getUsername()
      This method returns the username
      Returns:
      the username
    • getPassword

      public byte[] getPassword()
      This method returns the encoded password
      Returns:
      the password
    • getSeed

      public byte[] getSeed()
      This method returns the seed
      Returns:
      the seed
    • toString

      public String toString()
      This method returns a String that represent the object
      Overrides:
      toString in class Message
      Returns:
      a string representing the object.
    • writeObject

      public void writeObject(OutputSerializer out) throws IOException
      Description copied from class: Message
      Serialize the object into an ObjectOutput
      Specified by:
      writeObject in interface Serializable
      Overrides:
      writeObject in class MessageSendByteArray
      Parameters:
      out - the output serializer.
      Throws:
      IOException - if the serializations fails
    • readObject

      public void readObject(InputSerializer in) throws IOException
      Description copied from class: Message
      Serialize the object from an ObjectInput
      Specified by:
      readObject in interface Serializable
      Overrides:
      readObject in class MessageSendByteArray
      Parameters:
      in - the input serializer
      Throws:
      IOException - if the serializations fails