|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.companycontrol.CryptoMessagesHandler
Handler responsible for en- and decryption of messages
| Field Summary | |
protected CompanyControlClient |
client
reference to the CompanyControlClient |
protected CompanyCrypto |
crypto
crypto class used by the company control |
protected java.util.Collection |
queuedMessages
collection of queued messages. collected until crypto is ready |
| Constructor Summary | |
CryptoMessagesHandler(CompanyControlClient cCC)
Constructor |
|
| Method Summary | |
de.upb.swtpra.kernel.visualisation.RemoteObj |
handleIncoming(de.upb.swtpra.kernel.visualisation.RemoteObj ro)
handles all incoming messages and decrypt them if needed |
de.upb.swtpra.kernel.companycontrol.CompanyControlRemoteObj |
handleOutgoing(de.upb.swtpra.kernel.companycontrol.CompanyControlRemoteObj ccro)
handle decrypted incoming messages |
void |
initHandShake()
called to initiate the handshake with the shuttles |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final CompanyCrypto crypto
protected final CompanyControlClient client
protected final java.util.Collection queuedMessages
| Constructor Detail |
public CryptoMessagesHandler(CompanyControlClient cCC)
cCC - reference to the CompanyControlClient| Method Detail |
public void initHandShake()
public de.upb.swtpra.kernel.visualisation.RemoteObj handleIncoming(de.upb.swtpra.kernel.visualisation.RemoteObj ro)
ro - message
public de.upb.swtpra.kernel.companycontrol.CompanyControlRemoteObj handleOutgoing(de.upb.swtpra.kernel.companycontrol.CompanyControlRemoteObj ccro)
ccro - message
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||