|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.CryptoMessagesHandler
Handler responsible for en- and decryption of messages
| Field Summary | |
protected ShuttleControlInterface |
agent
reference to the ShuttleControl agent |
protected ShuttleCrypto |
crypto
crypto class used by the shuttle |
private static java.util.logging.Logger |
log
logger |
protected StrategyControlInterface |
strategy
reference to the StrategyControl |
| Constructor Summary | |
CryptoMessagesHandler()
Constructor |
|
| Method Summary | |
protected de.upb.swtpra.kernel.companycontrol.CompanyControlRemoteObj |
handleIncoming(de.upb.swtpra.kernel.companycontrol.CompanyControlRemoteObj remObj)
handle decrypted incoming messages |
de.upb.swtpra.kernel.message.Message |
handleIncoming(de.upb.swtpra.kernel.message.Message msg)
handles all incoming messages and decrypt them if needed |
de.upb.swtpra.kernel.message.Message |
handleOutgoing(de.upb.swtpra.kernel.message.Message msg)
handle all outgoing messages and encrypt them if needed |
void |
init(ModuleContainerInterface container)
Initializes this module. |
protected void |
sendKeyToShuttle(de.upb.swtpra.kernel.id.ID id)
sends the secret key to another shuttle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.util.logging.Logger log
protected ShuttleControlInterface agent
protected StrategyControlInterface strategy
protected final ShuttleCrypto crypto
| Constructor Detail |
public CryptoMessagesHandler()
| Method Detail |
public void init(ModuleContainerInterface container)
Module
init in interface Modulecontainer - The module manager which contain all modulespublic de.upb.swtpra.kernel.message.Message handleIncoming(de.upb.swtpra.kernel.message.Message msg)
CryptoMessagesHandlerInterface
handleIncoming in interface CryptoMessagesHandlerInterfacemsg - message
protected de.upb.swtpra.kernel.companycontrol.CompanyControlRemoteObj handleIncoming(de.upb.swtpra.kernel.companycontrol.CompanyControlRemoteObj remObj)
remObj -
public de.upb.swtpra.kernel.message.Message handleOutgoing(de.upb.swtpra.kernel.message.Message msg)
CryptoMessagesHandlerInterface
handleOutgoing in interface CryptoMessagesHandlerInterfacemsg - outgoing message
protected void sendKeyToShuttle(de.upb.swtpra.kernel.id.ID id)
id - the shuttle id
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||