Package org.apache.commons.net.ftp

Examples of org.apache.commons.net.ftp.FTPSClient


        }

        @Override
        protected FTPSClient createClient(final FileSystemOptions fileSystemOptions) throws FileSystemException
        {
            final FTPSClient client;
            if (builder.getFtpsMode(fileSystemOptions) == FtpsMode.IMPLICIT)
            {
                client = new FTPSClient(true);
            }
            else
            {
                client = new FTPSClient();
            }

            final TrustManager trustManager = builder.getTrustManager(fileSystemOptions);
            if (trustManager != null)
            {
                client.setTrustManager(trustManager);
            }

            final KeyManager keyManager = builder.getKeyManager(fileSystemOptions);
            if (keyManager != null)
            {
                client.setKeyManager(keyManager);
            }
            return client;
        }
View Full Code Here

TOP

Related Classes of org.apache.commons.net.ftp.FTPSClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.