Can I make a class file self destruct?
- From: "JuanValdex" <0360com@xxxxxxxxx>
- Date: 31 May 2006 07:25:27 -0700
I would like to be able to access a class file remotely, and send it a
command to self-destruct if it is unlicensed. (We have thieves
distributing our class files without license.)
Can I put some code in the class file to do this?
Maybe access it remotely with...
<applet codebase="http://www.remotesite.com/" code="myfile.class"...>
<param name="destroyClassFile" value="DoIt">
....
In the class file's code, something like...
String s=getParameter(destroyClassFile");
if (s == "DoIt") {
...code to destroy it
or
...overwrite itself on the server with junk
or
...turn on a function inside the class file to always display a
"this appears to be unlicensed" message
or
... ???
}
Any ideas? How can I send commands to the class file to permanently
change itself?
Thank you for your ideas!
.
- Follow-Ups:
- Re: Can I make a class file self destruct?
- From: Thomas Weidenfeller
- Re: Can I make a class file self destruct?
- From: Oliver Wong
- Re: Can I make a class file self destruct?
- From: Philipp Leitner
- Re: Can I make a class file self destruct?
- Prev by Date: Re: What is a Java Annotation?
- Next by Date: SOAP
- Previous by thread: Log4J DailyRollingFileAppender question
- Next by thread: Re: Can I make a class file self destruct?
- Index(es):
Relevant Pages
|