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.


Constructor Index

 o SMTPSecurity()
Default constructor.

Method Index

 o isValidAgent(Object)
No implementation for SMTP
 o processClientLogin(ReceiverThread, Address)
Opposite to the processServerLogin.
 o processClientLogout(ReceiverThread)
Send disconnect message to the server.
 o processServerLogin(ReceiverThread)
SMTP is only for client side security check.

Constructors

 o SMTPSecurity
 public SMTPSecurity()
Default constructor. By default, no password checking is assumed

Methods

 o 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
 o 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
 o 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
 o 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