All Packages Class Hierarchy This Package Previous Next Index
Class WebSite.Servlet.ServletSecurity
java.lang.Object
|
+----java.lang.SecurityManager
|
+----WebSite.Servlet.ServletSecurity
- public class ServletSecurity
- extends SecurityManager
Basic security manager for servlets. The installation default
installs this security manager, however you can substitute your own
and thereby implement sophisticated security policies for servlets
running on your server.
-
ServletSecurity()
-
-
checkAccept(String, int)
- Allow all inbound connections
-
checkAccess(Thread)
- Disallow access to system threadgroup from any thread
that is not in the system threadgroup.
-
checkAccess(ThreadGroup)
-
-
checkConnect(String, int)
- Allow connects
-
checkConnect(String, int, Object)
-
-
checkCreateClassLoader()
- Allow creating class loaders
-
checkDelete(String)
- Allow file deletion
-
checkExec(String)
- Allow creation of subprocesses
-
checkLink(String)
- Allow DLL loading
-
checkListen(int)
- Allow listening on TCP port
-
checkMemberAccess(Class, int)
- Allow class member access
-
checkMulticast(InetAddress)
- Allow multicast communication
-
checkMulticast(InetAddress, byte)
-
-
checkPackageAccess(String)
- Allow access to all packages
-
checkPackageDefinition(String)
- Prohibit adding classes to WebSite.Servlet
-
checkPrintJobAccess()
- Allow creating print jobs
-
checkPropertiesAccess()
- Allow access to properties.
-
checkPropertyAccess(String)
-
-
checkPropertyAccess(String, String)
-
-
checkRead(FileDescriptor)
- Allow reading
-
checkRead(String)
-
-
checkRead(String, Object)
-
-
checkSecurityAccess(String)
- Allow access to security providers
-
checkSetFactory()
- Allow setting the socket factory
-
checkTopLevelWindow(Object)
- Disallow opening top-level windows
-
checkWrite(FileDescriptor)
- Allow writing to files
-
checkWrite(String)
-
-
getThreadGroup()
- Create threads in current threadgroup
ServletSecurity
public ServletSecurity()
checkAccept
public void checkAccept(String host,
int port)
- Allow all inbound connections
- Overrides:
- checkAccept in class SecurityManager
checkAccess
public void checkAccess(Thread g)
- Disallow access to system threadgroup from any thread
that is not in the system threadgroup.
- Overrides:
- checkAccess in class SecurityManager
checkAccess
public void checkAccess(ThreadGroup g)
- Overrides:
- checkAccess in class SecurityManager
checkConnect
public void checkConnect(String host,
int port)
- Allow connects
- Overrides:
- checkConnect in class SecurityManager
checkConnect
public void checkConnect(String host,
int port,
Object context)
- Overrides:
- checkConnect in class SecurityManager
checkCreateClassLoader
public void checkCreateClassLoader()
- Allow creating class loaders
- Overrides:
- checkCreateClassLoader in class SecurityManager
checkDelete
public void checkDelete(String file)
- Allow file deletion
- Overrides:
- checkDelete in class SecurityManager
checkExec
public void checkExec(String cmd)
- Allow creation of subprocesses
- Overrides:
- checkExec in class SecurityManager
checkLink
public void checkLink(String lib)
- Allow DLL loading
- Overrides:
- checkLink in class SecurityManager
checkListen
public void checkListen(int port)
- Allow listening on TCP port
- Overrides:
- checkListen in class SecurityManager
checkMemberAccess
public void checkMemberAccess(Class clazz,
int which)
- Allow class member access
- Overrides:
- checkMemberAccess in class SecurityManager
checkMulticast
public void checkMulticast(InetAddress maddr)
- Allow multicast communication
- Overrides:
- checkMulticast in class SecurityManager
checkMulticast
public void checkMulticast(InetAddress maddr,
byte ttl)
- Overrides:
- checkMulticast in class SecurityManager
checkPackageAccess
public void checkPackageAccess(String pkg)
- Allow access to all packages
- Overrides:
- checkPackageAccess in class SecurityManager
checkPackageDefinition
public void checkPackageDefinition(String pkg)
- Prohibit adding classes to WebSite.Servlet
- Overrides:
- checkPackageDefinition in class SecurityManager
checkPrintJobAccess
public void checkPrintJobAccess()
- Allow creating print jobs
- Overrides:
- checkPrintJobAccess in class SecurityManager
checkPropertiesAccess
public void checkPropertiesAccess()
- Allow access to properties.
- Overrides:
- checkPropertiesAccess in class SecurityManager
checkPropertyAccess
public void checkPropertyAccess(String key)
- Overrides:
- checkPropertyAccess in class SecurityManager
checkPropertyAccess
public void checkPropertyAccess(String key,
String def)
checkRead
public void checkRead(FileDescriptor fd)
- Allow reading
- Overrides:
- checkRead in class SecurityManager
checkRead
public void checkRead(String file)
- Overrides:
- checkRead in class SecurityManager
checkRead
public void checkRead(String file,
Object context)
- Overrides:
- checkRead in class SecurityManager
checkSecurityAccess
public void checkSecurityAccess(String provider)
- Allow access to security providers
- Overrides:
- checkSecurityAccess in class SecurityManager
checkSetFactory
public void checkSetFactory()
- Allow setting the socket factory
- Overrides:
- checkSetFactory in class SecurityManager
checkTopLevelWindow
public boolean checkTopLevelWindow(Object window)
- Disallow opening top-level windows
- Overrides:
- checkTopLevelWindow in class SecurityManager
checkWrite
public void checkWrite(FileDescriptor fd)
- Allow writing to files
- Overrides:
- checkWrite in class SecurityManager
checkWrite
public void checkWrite(String file)
- Overrides:
- checkWrite in class SecurityManager
getThreadGroup
public ThreadGroup getThreadGroup()
- Create threads in current threadgroup
- Overrides:
- getThreadGroup in class SecurityManager
All Packages Class Hierarchy This Package Previous Next Index