public class ServerAuthResponseMessage extends Object implements Serializable
| Constructor and Description |
|---|
ServerAuthResponseMessage(boolean authRequired,
boolean authSuccessful)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static ServerAuthResponseMessage |
fromByteArray(byte[] array)
Deserializes the payload sent, returning a new
ServerAuthResponseMessage on success. |
int |
hashCode() |
boolean |
isAuthRequired()
Retrieves the authentication required flag.
|
boolean |
isAuthSuccessful()
Retrieves the authentication successful flag.
|
byte[] |
toByteArray()
Returns a serialized version of this class.
|
String |
toString() |
public ServerAuthResponseMessage(boolean authRequired,
boolean authSuccessful)
authRequired - Indicates whether or not authentication is required for this server.authSuccessful - Indicates whether or not authentication was successful.public boolean isAuthRequired()
boolean containing the flag.public boolean isAuthSuccessful()
boolean containing the flag.public byte[] toByteArray()
byte[] array containing the serialized payload.public static ServerAuthResponseMessage fromByteArray(byte[] array)
ServerAuthResponseMessage on success.array - byte[] array of data to deserialize.ServerAuthResponseMessage on success, null otherwise.Copyright © 2015. All rights reserved.