java rmi 中的通信安全吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2314809/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 20:34:18  来源:igfitidea点击:

Is communication in java rmi secure?

javarmi

提问by oO.

Is communication between clients and servers in java rmi secure (i.e. encrypted by default)?

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

回答by Tom Hawtin - tackline

Encoded, yes. Encrypted, no.

编码,是的。加密,没有。

JERI for JINI gives JRMP (the RMI protocol) over SSL, IIRC.

JERI for JINI 通过 SSL、IIRC 提供 JRMP(RMI 协议)。

JSR #76 would have provided RMI Security, however it was controversially voted down.

JSR #76 本来可以提供 RMI 安全性,但是它有争议地被否决了

回答by cletus

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 over SSH tunneling 之类的东西。

回答by brabster

By secure I guess you mean encrypted. Not by default with RMI. You can use custom socket factoriesto encrypt RMI comms.

安全我猜你的意思是加密。默认情况下不使用 RMI。您可以使用自定义套接字工厂来加密 RMI 通信。

回答by hythlodayr

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.

从本质上讲,如果您需要确保安全,就必须对网络通道进行加密。

回答by sibidiba

Not mentioned this far: You can set up a VPNbetween the machines for full layer 2 security.

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