Establishing a connection using Explicit SSL

Top  Previous  Next

To establish a connection to an FTP server using Explict SSL (AUTH TLS or AUTH SSL), create an Ftps instance providing the required hostname, username and password arguments and then invoke the Ftps#connect method.

 

Example

 

// create new Ftps instance and connect using AUTH TLS (default)

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

ftps.connect();

 

// create new Ftps instance and connect using AUTH SSL

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

ftps.setConnectionType(Ftps.AUTH_SSL);

ftps.connect();

 





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

© 2021 JSCAPE LLC