ftps传输encrypt data
来源:互联网 发布:知乎手机怎么回答 编辑:程序博客网 时间:2024/06/04 23:22
public static void main(String[] args) throws IOException, NoSuchAlgorithmException {
FTPSClient client = new FTPSClient();
client.connect("127.0.0.1");
client.execPROT("P"); // encrypt data channel
if (client.login("rory", "pass")) {
for (FTPFile file : client.listFiles()) { System.out.println(file.getName()); }
}
else { System.out.err(client.getReplyString()); }
}
Show
Rory Winston added a comment - 07/Feb/09 10:21 If the server is set to force data connections to be encrypted, then the client can issue a PROT command to encrypt data connections. See the example: public static void main(String[] args) throws IOException, NoSuchAlgorithmException { FTPSClient client = new FTPSClient(); client.connect("127.0.0.1"); client.execPROT("P"); // encrypt data channel if (client.login("rory", "pass")) { for (FTPFile file : client.listFiles()) { System.out.println(file.getName()); } } else { System.out.err(client.getReplyString()); } }
- ftps传输encrypt data
- 配置Filezilla使用ftps协议加密传输
- vsftp实现ftps加密传输数据
- FTPS
- ftps
- FTPS
- PHP Encrypt/Decrypt: Simple class to encrypt url data
- How to: Encrypt a Column of Data
- Encrypt/decrypt when serialize/deserialize data
- Encrypt
- Encrypt or Decrypt sensitive data using PLSQL - DBMS_CRYPTO
- usb data 传输格式
- Explicit FTPS versus Implicit FTPS
- FTP,FTPS,FTPS与防火墙
- Data Guard 日志传输模式
- How To: Use DPAPI to Encrypt and Decrypt Data (C#/VB.NET)
- 通过程序发布FTPS以及连接FTPS
- Data Guard日志传输优化------网络传输优化实践
- CentOS Tips
- 雷达图,自己捣腾了一个,还有许多需要改进的地方
- 关于java处理异常的话题
- DDL With the WAIT Option (DDL_LOCK_TIMEOUT) in Oracle Database 11g Release 1
- 几种数字滤波算法
- ftps传输encrypt data
- poj 3026 Borg Maze
- [旧闻]OpenStreetMap 组织确认苹果正使用他们的地图数据
- JS DOM
- 系统性能调优如何做?
- 深入浅出JavaScript—ECMAScript
- .NET使用DES加密解密
- warning LNK4070: /OUT:dll.dll directive in .EXP ..
- 系统性能调优如何做(2)?