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
Is communication in java rmi secure?
提问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.
从本质上讲,如果您需要确保安全,就必须对网络通道进行加密。

