public class UsernamePasswordResponseMessage extends Object implements WritableMessage
UsernamePasswordResponseMessage
represents a response message for
USERNAME/PASSWORD authentication.Constructor and Description |
---|
UsernamePasswordResponseMessage(boolean success)
Constructs an instance of
UsernamePasswordResponseMessage . |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Returns the byte array of the message.
|
int |
getLength()
Returns the length of message.
|
int |
getStatus()
Returns status.
|
int |
getVersion()
Returns version.
|
void |
setStatus(int status)
Sets status.
|
public UsernamePasswordResponseMessage(boolean success)
UsernamePasswordResponseMessage
.success
- If username and password is matched, it will return true
.public byte[] getBytes()
WritableMessage
getBytes
in interface WritableMessage
public int getLength()
Message
public int getStatus()
public void setStatus(int status)
status
- Status.public int getVersion()
Copyright © 2015. All rights reserved.