Establishing a connection using Implicit SSL

Top  Previous  Next

To establish a connection to an FTP server using Implicit SSL first create an Ftps instance providing the required hostname, username and password arguments.  Then set the connection type to Implicit SSL using the Ftps#setConnectionType method and set the server port resposible for handling Implicit SSL connections (usually 990) using Ftps#setPort.  Finally invoke the Ftps#connect method.

 

Example

 

// create new Ftps instance and connect

Ftps ftps = new Ftps(hostname,username,password);

ftps.setConnectionType(Ftps.IMPLICIT_SSL);

ftps.setPort(990);

ftps.connect();





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC