All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ProtocolLayer.FTPSecurity

Abstract.Security
   |
   +----ProtocolLayer.FTPSecurity

public class FTPSecurity
extends Security
FTP security managing module. JATLite beta only implements FTP client side, All necessary steps to transfer data will be performed here - user name/ password check and directory existence. For any security violation such as wrong user name, password or directory not exist will throw an exception.


Constructor Index

 o FTPSecurity()
Default constructor.
 o FTPSecurity(String, String, String, boolean)
FTP security for checking username, password and remote path accessibility

Method Index

 o isValidAgent(Object)
No implementation for SMTP
 o processClientLogin(ReceiverThread, Address)
FTP connection protocol.
 o processClientLogout(ReceiverThread)
Send disconnect message to the server.
 o processServerLogin(ReceiverThread)
SMTP is only for client side security check.
 o setMode(boolean)
Set create directory mode.

Constructors

 o FTPSecurity
 public FTPSecurity()
Default constructor.

 o FTPSecurity
 public FTPSecurity(String remotePath,
                    String userName,
                    String password,
                    boolean createDir)
FTP security for checking username, password and remote path accessibility

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
FTP connection protocol. If not satisfied or error occurs, ConnectionException will be thrown.

Parameters:
c - ReceiverThread, which will connect to the other server
serveraddress - Other agent address where I want to connect
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
 o setMode
 public void setMode(boolean isCreateDir)
Set create directory mode.

Parameters:
isCreateDir - True if want to create directory

All Packages  Class Hierarchy  This Package  Previous  Next  Index