This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes RMI and Security for OCJD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply locked New topic
Author

RMI and Security for OCJD

A.G Rajkotia
Greenhorn

Joined: Aug 11, 2011
Posts: 28
Hello,

In the OCJD assignment we often use RMI. While the program communicates with the server through the Internet are there any security threats concern with this. Are we required to implement such security code in our assignment. This is because I don't have any knowledge on security.

Thank you
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5126
    
  12

As per instructions no need to implement any security at all.


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
A.G Rajkotia
Greenhorn

Joined: Aug 11, 2011
Posts: 28
Roel De Nijs wrote:As per instructions no need to implement any security at all.


Hi Roel, Thanks for the reply

Can you still tell me the security measures that can be applied, I need them
Any book, links, tutorials will be very helpful.

I'm currently using the following code both in my server and client class which i got from rmi tutorials at oracle website

if (System.getSecurityManager() == null) {
System.setSecurityManager(new SecurityManager());
}


Is this sufficient or do we need more.
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5126
    
  12

If your question is related to the OCMJD you are not allowed to use a security manager at all. So I have no idea why you need security (unless it's not with regard to the OCMJD and then you'll be better off with posting this question in a more appropriate forum).
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1502
    
    5

I guess Monkhouse book mentions what to do in case network is protected by firewall. But as Roel has already mentioned, this (security) is not a must requirement (so I didn't even read that part ).


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
A.G Rajkotia
Greenhorn

Joined: Aug 11, 2011
Posts: 28
Thankx Anayonkar, it helped me a lot

Guys anything on Rmi Security (link, article, blog) will be really helpful. I know Its not required for OCJD, but still I need it.
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5126
    
  12

A.G Rajkotia wrote:I know Its not required for OCJD, but still I need it.

Moved to Distributed Java

He posted already another thread on this topic, so locking this one.
 
wood burning stoves
 
subject: RMI and Security for OCJD
 
Similar Threads
B&S: locking methods in DBMain
RMI - Transport return code invalid
RMI stub classes
Mentioning Performance, Security, Scalability in the UML diagrams
Part II: SSL security