org.jext
Class JextLoader

java.lang.Object
org.jext.JextLoader
- All Implemented Interfaces:
- java.lang.Runnable
- final class JextLoader
- extends java.lang.Object
- implements java.lang.Runnable
This class creates a new socket connection which listens to client requests. Whenever
a client logs onto the socket, we check its IP address.
Security implementation:
- If this address isn't 127.0.0.1 (aka localhost), the connection is rejected.
- The socket also needs to get the good message which must contain a give authorization key.
If the given key or message is wrong, the connection is rejected.
- If the server rejects a connection, it also closes itself to avoid Denial Of Service
attacks or brutal ones (trying for instance random keys).
- Version:
- 1.1.1
|
Constructor Summary |
(package private) |
JextLoader()
|
|
Method Summary |
protected void |
finalize()
Patch
-> Memory management improvements : it may help the garbage collector. |
private void |
intrusion()
|
void |
run()
Waits for a connexion request and handle it. |
void |
stop()
Stops the server by inerrupting the thread, killing it and then
closing the server itself. |
port
private int port
auth
private java.io.File auth
key
private java.lang.String key
tServer
private java.lang.Thread tServer
server
private java.net.ServerSocket server
JextLoader
JextLoader()
stop
public void stop()
- Stops the server by inerrupting the thread, killing it and then
closing the server itself. Finally, it erases the authorization
key.
run
public void run()
- Waits for a connexion request and handle it. The client should provide a special line
containing a message, the arguments for the loading and the authorization key. This
key is used to avoid security holes in your system.
- Specified by:
run in interface java.lang.Runnable
intrusion
private void intrusion()
finalize
protected void finalize()
throws java.lang.Throwable
- Patch
-> Memory management improvements : it may help the garbage collector.
-> Author : Julien Ponge (julien@izforge.com)
-> Date : 23, May 2001