Is communication in java rmi secure?

后端 未结 5 602
独厮守ぢ
独厮守ぢ 2021-01-04 23:45

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

相关标签:
5条回答
  • 2021-01-05 00:25

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

    0 讨论(0)
  • 2021-01-05 00:36

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

    0 讨论(0)
  • 2021-01-05 00:45

    Encoded, yes. Encrypted, no.

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

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

    0 讨论(0)
  • 2021-01-05 00:47

    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.

    0 讨论(0)
  • 2021-01-05 00:47

    In short, no.

    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.

    0 讨论(0)
提交回复
热议问题