Package marauroa.common.net.message
Class MessageC2SLoginSendUsernameAndPassword
java.lang.Object
marauroa.common.net.message.Message
marauroa.common.net.message.MessageSendByteArray
marauroa.common.net.message.MessageC2SLoginSendUsernameAndPassword
- All Implemented Interfaces:
Serializable
This message indicate the server that the client wants to login. This message
is only to be used over a secure channel.
- See Also:
MessageC2SLoginSendNonceNameAndPassword
-
Nested Class Summary
Nested classes/interfaces inherited from class marauroa.common.net.message.Message
Message.MessageType -
Field Summary
Fields inherited from class marauroa.common.net.message.MessageSendByteArray
hashFields inherited from class marauroa.common.net.message.Message
channel, clientid, CLIENTID_INVALID, protocolVersion, timestampMessage, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for allowing creation of an empty message -
Method Summary
Modifier and TypeMethodDescriptionbyte[]This method returns the encoded passwordThis method returns the usernamevoidreadFromMap(Map<String,Object> in)reads a message from a mapvoidSerialize the object from an ObjectInputtoString()This method returns a String that represent the objectvoidwriteObject(OutputSerializer out)Serialize the object into an ObjectOutputMethods inherited from class marauroa.common.net.message.MessageSendByteArray
getHashMethods inherited from class marauroa.common.net.message.Message
getAddress, getChannel, getClientID, getMessageTimestamp, getProtocolVersion, getType, internalToString, isPerception, isSkippable, requiresPerception, setChannel, setClientID, setProtocolVersion, writeToJson
-
Constructor Details
-
MessageC2SLoginSendUsernameAndPassword
public MessageC2SLoginSendUsernameAndPassword()Constructor for allowing creation of an empty message
-
-
Method Details
-
getUsername
This method returns the username- Returns:
- the username
-
getPassword
public byte[] getPassword()This method returns the encoded password- Returns:
- the password
-
toString
This method returns a String that represent the object -
writeObject
Description copied from class:MessageSerialize the object into an ObjectOutput- Specified by:
writeObjectin interfaceSerializable- Overrides:
writeObjectin classMessageSendByteArray- Parameters:
out- the output serializer.- Throws:
IOException- if the serializations fails
-
readObject
Description copied from class:MessageSerialize the object from an ObjectInput- Specified by:
readObjectin interfaceSerializable- Overrides:
readObjectin classMessageSendByteArray- Parameters:
in- the input serializer- Throws:
IOException- if the serializations fails
-
readFromMap
Description copied from class:Messagereads a message from a map- Overrides:
readFromMapin classMessage- Parameters:
in- Map to read from- Throws:
IOException- if the serializations fails
-