All Packages Class Hierarchy This Package Previous Next Index
Class ProtocolLayer.SMTPSecurity
Abstract.Security
|
+----ProtocolLayer.SMTPSecurity
- public class SMTPSecurity
- extends Security
Security performed for SMTP.
-
SMTPSecurity()
- Default constructor.
-
isValidAgent(Object)
- No implementation for SMTP
-
processClientLogin(ReceiverThread, Address)
- Opposite to the processServerLogin.
-
processClientLogout(ReceiverThread)
- Send disconnect message to the server.
-
processServerLogin(ReceiverThread)
- SMTP is only for client side security check.
SMTPSecurity
public SMTPSecurity()
- Default constructor. By default, no password checking is assumed
processServerLogin
public void processServerLogin(ReceiverThread c)
- SMTP is only for client side security check. No implementation.
This will be override if new register protocol is added.
- Parameters:
- c - ReceiverThread will be started
- Overrides:
- processServerLogin in class Security
processClientLogin
public void processClientLogin(ReceiverThread c,
Address serveraddress) throws ConnectionException
- Opposite to the processServerLogin. Connection should be added to the
connection table, by caller.
- Parameters:
- c - ReceiverThread, which will connect to the other server
- serveraddress - Other agent address where I want to connect
- Throws: ConnectionException
- if error occurs including SMTP
- Overrides:
- processClientLogin in class Security
processClientLogout
public void processClientLogout(ReceiverThread c)
- Send disconnect message to the server. The ReceiverThread is initiated
by me.
- Parameters:
- c - ReceiverThread, which will stop.
- myid - My name, may be passed to the server to disconnect gracefully
- Overrides:
- processClientLogout in class Security
isValidAgent
public boolean isValidAgent(Object o)
- No implementation for SMTP
- Parameters:
- obj - Object which dependent upon the security implementation
- Returns:
- true if the agent is valid else, retur false
- Overrides:
- isValidAgent in class Security
All Packages Class Hierarchy This Package Previous Next Index