}
@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;
}