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.


Variable Index

 o SM_AGENT_ACCEPT_P
Name of the property indicating if agents are allowed to accept().
 o SM_AGENT_WRITE_P
Name of the property indicating if agents are allowed to write().
 o SM_DEBUG_P
Name of the property indicating if security maneger is debuged.

Constructor Index

 o httpdSecurityManager()

Method Index

 o checkAccept(String, int)
 o checkAccess(Thread)
 o checkCreateClassLoader()
 o checkListen(int)
 o checkPropertiesAccess()
 o checkRead(int)
 o checkRead(String)
 o checkWrite(int)
 o checkWrite(String)
 o inAgent()
 o trace(String)

Variables

 o 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.

 o 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.

 o 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.

Constructors

 o httpdSecurityManager
 public httpdSecurityManager()

Methods

 o inAgent
 protected final boolean inAgent()
 o trace
 protected void trace(String msg)
 o checkAccept
 public void checkAccept(String host,
                         int port)
Overrides:
checkAccept in class SecurityManager
 o checkAccess
 public void checkAccess(Thread thr)
Overrides:
checkAccess in class SecurityManager
 o checkCreateClassLoader
 public void checkCreateClassLoader()
Overrides:
checkCreateClassLoader in class SecurityManager
 o checkListen
 public void checkListen(int port)
Overrides:
checkListen in class SecurityManager
 o checkPropertiesAccess
 public void checkPropertiesAccess()
Overrides:
checkPropertiesAccess in class SecurityManager
 o checkRead
 public void checkRead(String file)
Overrides:
checkRead in class SecurityManager
 o checkRead
 public void checkRead(int fd)
 o checkWrite
 public void checkWrite(int fd)
 o checkWrite
 public void checkWrite(String file)
Overrides:
checkWrite in class SecurityManager

All Packages  Class Hierarchy  This Package  Previous  Next  Index