| Author |
How to make java/servlet code write protected
|
sanuji pillai
Greenhorn
Joined: Jul 05, 2010
Posts: 14
|
|
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
Bartender
Joined: Oct 14, 2005
Posts: 13842
|
|
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
Joined: Jul 05, 2010
Posts: 14
|
|
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 opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50691
|
|
|
Make sure that the .class files are not available except to trusted logins.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Rob Spoor
Saloon Keeper
Joined: Oct 27, 2005
Posts: 18368
|
|
|
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.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 26716
|
|
|
Too difficult a question for “beginning”. Moving discussion.
|
 |
 |
|
|
subject: How to make java/servlet code write protected
|
|
|