public class PasswordMessage extends ControlMessage
A Password Message takes a username and password and input and supposedly handles auth. Here, however, since connections are through localhost, we do not do so.
Static Fields
IDENTIFIER
protected static final char IDENTIFIER
Type | Description |
char |
Constructors
PasswordMessage(ConnectionHandler connection, Map<String,String> parameters)
public PasswordMessage(ConnectionHandler connection, Map<String,String> parameters)
Name | Description |
connection | ConnectionHandler |
parameters | Map<String,String> |
Methods
getIdentifier()
protected String getIdentifier()
Used for logging.
Type | Description |
String |
getMessageName()
protected String getMessageName()
Used for logging.
Type | Description |
String |
getPassword()
public String getPassword()
Type | Description |
String |
getPayloadString()
protected String getPayloadString()
Used for logging.
Type | Description |
String |
getUsername()
public String getUsername()
Type | Description |
String |
sendPayload()
protected void sendPayload()
Override this method to include post-processing and metadata in the sending process. Template method for send.
Type | Description |
Exception |