简体   繁体   English

java rmi中的通信安全吗?

[英]Is communication in java rmi secure?

java rmi中的客户端和服务器之间的通信是否安全(即默认加密)?

Encoded, yes. 编码,是的。 Encrypted, no. 加密,没有。

JERI for JINI gives JRMP (the RMI protocol) over SSL, IIRC. JINI的JERI通过SSL,IIRC提供JRMP(RMI协议)。

JSR #76 would have provided RMI Security, however it was controversially voted down . JSR#76本来可以提供RMI安全性,但是有争议地被否决了

I think you mean "encrypted" not "encoded". 我认为你的意思是“加密”而非“编码”。 The answer is no. 答案是不。 If you're using RMI in a non-trusted environment I would suggest something like RMI over SSH tunneling . 如果您在不受信任的环境中使用RMI,我建议使用RMI而不是SSH隧道

By secure I guess you mean encrypted. 安全我想你的意思是加密。 Not by default with RMI. 默认情况下不是RMI。 You can use custom socket factories to encrypt RMI comms. 您可以使用自定义套接字工厂来加密RMI通信。

In short, no. 简而言之,没有。

http://java.sun.com/j2se/1.4.2/docs/guide/rmi/faq.html#encryption http://java.sun.com/j2se/1.4.2/docs/guide/rmi/faq.html#encryption

In essence, the network channel has to be encrypted if you need things to be secure. 实质上,如果您需要安全的话,必须加密网络通道。

到目前为止没有提到:您可以在机器之间设置VPN以实现完整的第2层安全性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM