|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectScrabbleProtocol
Class to handle message transaction in the remote game. Allows for simple encryption and coding of messages.
Client,
ServerThread| Constructor Summary | |
ScrabbleProtocol()
|
|
| Method Summary | |
java.lang.String |
decryptMessage(java.lang.String ciphertext)
Rotation method to decrypt the encoded message. |
java.lang.String |
encryptMessage(java.lang.String plaintext)
Method to encypt a message based on a simple rotation. |
java.lang.String[] |
processInput(java.lang.String theInput)
Processes an encrypted, coded message and returns a String array containing only the useful information. |
java.lang.String |
processOutput(int uid,
int index,
java.lang.String message)
Constructs, codes and encrypts an outgoing message. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ScrabbleProtocol()
| Method Detail |
public java.lang.String encryptMessage(java.lang.String plaintext)
plaintext - The text to encrypt.
public java.lang.String decryptMessage(java.lang.String ciphertext)
ciphertext - The ciphertext.
public java.lang.String[] processInput(java.lang.String theInput)
theInput - The ciphertext message.
public java.lang.String processOutput(int uid,
int index,
java.lang.String message)
uid - The unique identifier of the client.index - The message type.message - The message body.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||