All Packages Class Hierarchy This Package Previous Next Index
Class w3c.jigsaw.http.httpdSecurityManager
java.lang.Object
|
+----java.lang.SecurityManager
|
+----w3c.jigsaw.http.httpdSecurityManager
- public class httpdSecurityManager
- extends SecurityManager
The jhttpd security manager.
You really need this if you plan to accept agent execution on your server.
Although, in next versions, the security manager may be used to limit
your server users in what entities they can export.
Add the -s command line argument to jhttpd invocation to
set the security manager to an instance of this class.
-
SM_AGENT_ACCEPT_P
- Name of the property indicating if agents are allowed to accept().
-
SM_AGENT_WRITE_P
- Name of the property indicating if agents are allowed to write().
-
SM_DEBUG_P
- Name of the property indicating if security maneger is debuged.
-
httpdSecurityManager()
-
-
checkAccept(String, int)
-
-
checkAccess(Thread)
-
-
checkCreateClassLoader()
-
-
checkListen(int)
-
-
checkPropertiesAccess()
-
-
checkRead(int)
-
-
checkRead(String)
-
-
checkWrite(int)
-
-
checkWrite(String)
-
-
inAgent()
-
-
trace(String)
-
SM_AGENT_ACCEPT_P
public static final String SM_AGENT_ACCEPT_P
- Name of the property indicating if agents are allowed to accept().
When true, this property indicates that agents are
allowed to use the accept method of ServerSockets.
This property defaults to false.
SM_AGENT_WRITE_P
public static final String SM_AGENT_WRITE_P
- Name of the property indicating if agents are allowed to write().
When true, this property indicates that agents
are allowed to use the write method of output streams.
This property defaults to false.
SM_DEBUG_P
public static final String SM_DEBUG_P
- Name of the property indicating if security maneger is debuged.
When true this property makes the security manager
emits debugging traces.
This property defaults to false.
httpdSecurityManager
public httpdSecurityManager()
inAgent
protected final boolean inAgent()
trace
protected void trace(String msg)
checkAccept
public void checkAccept(String host,
int port)
- Overrides:
- checkAccept in class SecurityManager
checkAccess
public void checkAccess(Thread thr)
- Overrides:
- checkAccess in class SecurityManager
checkCreateClassLoader
public void checkCreateClassLoader()
- Overrides:
- checkCreateClassLoader in class SecurityManager
checkListen
public void checkListen(int port)
- Overrides:
- checkListen in class SecurityManager
checkPropertiesAccess
public void checkPropertiesAccess()
- Overrides:
- checkPropertiesAccess in class SecurityManager
checkRead
public void checkRead(String file)
- Overrides:
- checkRead in class SecurityManager
checkRead
public void checkRead(int fd)
checkWrite
public void checkWrite(int fd)
checkWrite
public void checkWrite(String file)
- Overrides:
- checkWrite in class SecurityManager
All Packages Class Hierarchy This Package Previous Next Index