Class PasswordMessage (0.5.1)

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.

Inheritance

java.lang.Object > WireMessage > ControlMessage > PasswordMessage

Static Fields

IDENTIFIER

protected static final char IDENTIFIER
Field Value
TypeDescription
char

Constructors

PasswordMessage(ConnectionHandler connection, Map<String,String> parameters)

public PasswordMessage(ConnectionHandler connection, Map<String,String> parameters)
Parameters
NameDescription
connectionConnectionHandler
parametersMap<String,String>

Methods

getIdentifier()

protected String getIdentifier()

Used for logging.

Returns
TypeDescription
String
Overrides

getMessageName()

protected String getMessageName()

Used for logging.

Returns
TypeDescription
String
Overrides

getPassword()

public String getPassword()
Returns
TypeDescription
String

getPayloadString()

protected String getPayloadString()

Used for logging.

Returns
TypeDescription
String
Overrides

getUsername()

public String getUsername()
Returns
TypeDescription
String

sendPayload()

protected void sendPayload()

Override this method to include post-processing and metadata in the sending process. Template method for send.

Overrides Exceptions
TypeDescription
Exception