public class ServerAuthRequestMessage extends Object implements Serializable
| Constructor and Description |
|---|
ServerAuthRequestMessage(String username,
String password)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static ServerAuthRequestMessage |
fromByteArray(byte[] array)
Deserializes the payload sent, returning a new
ServerAuthRequestMessage on success. |
String |
getPassword()
Retrieves the password.
|
String |
getUsername()
Retrieves the username.
|
int |
hashCode() |
byte[] |
toByteArray()
Returns a serialized version of this class.
|
String |
toString() |
public String getUsername()
String containing the username.public String getPassword()
String containing the password.public byte[] toByteArray()
byte[] array containing the serialized payload.public static ServerAuthRequestMessage fromByteArray(byte[] array)
ServerAuthRequestMessage on success.array - byte[] array of data to deserialize.ServerAuthRequestMessage on success, null otherwise.Copyright © 2015. All rights reserved.