• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make java/servlet code write protected

 
sanuji pillai
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have one common question related to Java/Servlet.
I have done one some functionality in my application , i want to make java/servlet code write protected or accessibility hidden or cannot alter by someone.
Any option in java to impletement this functionality.

Regards,
Sanuji Pillai T G.
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The source code or the compiled class?

At any rate you can make any file in your computer read-only, or whatever, by asking your operating system to apply those permissions to it. Why do you ask how to do that in Java?
 
sanuji pillai
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What i mean is that java file/compiled class. Once class file is generated , there are several tools to revert bact to *.java.
Thats how the authenticity is broken.
I dont need to alter the content, that is the requirement.

Regards,
Sanuji Pillai
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that the .class files are not available except to trusted logins.
 
Rob Spoor
Sheriff
Pie
Posts: 20661
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With servlets, everything you put in the WEB-INF folder will not be accessible from browsers. That means that all classes in the WEB-INF/classes folder are only visible to anyone who has access to the server either directly, or through FTP, Windows shares, NFS etc - in other words, when it's possible to see the file system itself.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50175
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too difficult a question for “beginning”. Moving discussion.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic