Establishing a connection using Explicit SSL |
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();
|