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.
-
FTPSecurity()
- Default constructor.
-
FTPSecurity(String, String, String, boolean)
- FTP security for checking username, password and remote path accessibility
-
isValidAgent(Object)
- No implementation for SMTP
-
processClientLogin(ReceiverThread, Address)
- FTP connection protocol.
-
processClientLogout(ReceiverThread)
- Send disconnect message to the server.
-
processServerLogin(ReceiverThread)
- SMTP is only for client side security check.
-
setMode(boolean)
- Set create directory mode.
FTPSecurity
public FTPSecurity()
- Default constructor.
FTPSecurity
public FTPSecurity(String remotePath,
String userName,
String password,
boolean createDir)
- FTP security for checking username, password and remote path accessibility
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
- 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
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
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