【发布时间】:2016-02-14 03:50:36
【问题描述】:
我已经在我的 aws ec2 实例上设置了一个 FTPS 服务器。我正在使用 Apache Commons net 以编程方式连接到我的服务器。
try
{
ftps.enterLocalPassiveMode();
ftps.setBufferSize(1000);
ftps.execPROT("P");
if (!ftps.login(username, password))
{
ftps.logout();
error = true;
break __main;
}
}
如果我不设置 execProt("P"),我将无法检索文件。从他们的documentation,我看到“P”代表私有数据通道保护级别。这是什么意思?为什么我使用 P 而不是“S”或“E”?
【问题讨论】:
标签: java ssl apache-commons-net ftps