|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.SecurityManager org.w3c.jigsaw.http.httpdSecurityManager
public class httpdSecurityManager
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.
Field Summary | |
---|---|
static java.lang.String |
SM_AGENT_ACCEPT_P
Name of the property indicating if agents are allowed to accept(). |
static java.lang.String |
SM_AGENT_WRITE_P
Name of the property indicating if agents are allowed to write(). |
static java.lang.String |
SM_DEBUG_P
Name of the property indicating if security maneger is debuged. |
Fields inherited from class java.lang.SecurityManager |
---|
inCheck |
Constructor Summary | |
---|---|
httpdSecurityManager()
|
Method Summary | |
---|---|
void |
checkAccept(java.lang.String host,
int port)
|
void |
checkAccess(java.lang.Thread thr)
|
void |
checkCreateClassLoader()
|
void |
checkListen(int port)
|
void |
checkPropertiesAccess()
|
void |
checkRead(int fd)
|
void |
checkRead(java.lang.String file)
|
void |
checkWrite(int fd)
|
void |
checkWrite(java.lang.String file)
|
protected boolean |
inAgent()
|
protected void |
trace(java.lang.String msg)
|
Methods inherited from class java.lang.SecurityManager |
---|
checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkDelete, checkExec, checkExit, checkLink, checkMemberAccess, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPermission, checkPermission, checkPrintJobAccess, checkPropertyAccess, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, classDepth, classLoaderDepth, currentClassLoader, currentLoadedClass, getClassContext, getInCheck, getSecurityContext, getThreadGroup, inClass, inClassLoader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SM_AGENT_ACCEPT_P
This property defaults to false.
public static final java.lang.String SM_AGENT_WRITE_P
This property defaults to false.
public static final java.lang.String SM_DEBUG_P
This property defaults to false.
Constructor Detail |
---|
public httpdSecurityManager()
Method Detail |
---|
protected final boolean inAgent()
protected void trace(java.lang.String msg)
public void checkAccept(java.lang.String host, int port)
checkAccept
in class java.lang.SecurityManager
public void checkAccess(java.lang.Thread thr)
checkAccess
in class java.lang.SecurityManager
public void checkCreateClassLoader()
checkCreateClassLoader
in class java.lang.SecurityManager
public void checkListen(int port)
checkListen
in class java.lang.SecurityManager
public void checkPropertiesAccess()
checkPropertiesAccess
in class java.lang.SecurityManager
public void checkRead(java.lang.String file)
checkRead
in class java.lang.SecurityManager
public void checkRead(int fd)
public void checkWrite(int fd)
public void checkWrite(java.lang.String file)
checkWrite
in class java.lang.SecurityManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |