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.


Constructor Index

 o ServletSecurity()

Method Index

 o checkAccept(String, int)
Allow all inbound connections
 o checkAccess(Thread)
Disallow access to system threadgroup from any thread that is not in the system threadgroup.
 o checkAccess(ThreadGroup)
 o checkConnect(String, int)
Allow connects
 o checkConnect(String, int, Object)
 o checkCreateClassLoader()
Allow creating class loaders
 o checkDelete(String)
Allow file deletion
 o checkExec(String)
Allow creation of subprocesses
 o checkLink(String)
Allow DLL loading
 o checkListen(int)
Allow listening on TCP port
 o checkMemberAccess(Class, int)
Allow class member access
 o checkMulticast(InetAddress)
Allow multicast communication
 o checkMulticast(InetAddress, byte)
 o checkPackageAccess(String)
Allow access to all packages
 o checkPackageDefinition(String)
Prohibit adding classes to WebSite.Servlet
 o checkPrintJobAccess()
Allow creating print jobs
 o checkPropertiesAccess()
Allow access to properties.
 o checkPropertyAccess(String)
 o checkPropertyAccess(String, String)
 o checkRead(FileDescriptor)
Allow reading
 o checkRead(String)
 o checkRead(String, Object)
 o checkSecurityAccess(String)
Allow access to security providers
 o checkSetFactory()
Allow setting the socket factory
 o checkTopLevelWindow(Object)
Disallow opening top-level windows
 o checkWrite(FileDescriptor)
Allow writing to files
 o checkWrite(String)
 o getThreadGroup()
Create threads in current threadgroup

Constructors

 o ServletSecurity
 public ServletSecurity()

Methods

 o checkAccept
 public void checkAccept(String host,
                         int port)
Allow all inbound connections

Overrides:
checkAccept in class SecurityManager
 o 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
 o checkAccess
 public void checkAccess(ThreadGroup g)
Overrides:
checkAccess in class SecurityManager
 o checkConnect
 public void checkConnect(String host,
                          int port)
Allow connects

Overrides:
checkConnect in class SecurityManager
 o checkConnect
 public void checkConnect(String host,
                          int port,
                          Object context)
Overrides:
checkConnect in class SecurityManager
 o checkCreateClassLoader
 public void checkCreateClassLoader()
Allow creating class loaders

Overrides:
checkCreateClassLoader in class SecurityManager
 o checkDelete
 public void checkDelete(String file)
Allow file deletion

Overrides:
checkDelete in class SecurityManager
 o checkExec
 public void checkExec(String cmd)
Allow creation of subprocesses

Overrides:
checkExec in class SecurityManager
 o checkLink
 public void checkLink(String lib)
Allow DLL loading

Overrides:
checkLink in class SecurityManager
 o checkListen
 public void checkListen(int port)
Allow listening on TCP port

Overrides:
checkListen in class SecurityManager
 o checkMemberAccess
 public void checkMemberAccess(Class clazz,
                               int which)
Allow class member access

Overrides:
checkMemberAccess in class SecurityManager
 o checkMulticast
 public void checkMulticast(InetAddress maddr)
Allow multicast communication

Overrides:
checkMulticast in class SecurityManager
 o checkMulticast
 public void checkMulticast(InetAddress maddr,
                            byte ttl)
Overrides:
checkMulticast in class SecurityManager
 o checkPackageAccess
 public void checkPackageAccess(String pkg)
Allow access to all packages

Overrides:
checkPackageAccess in class SecurityManager
 o checkPackageDefinition
 public void checkPackageDefinition(String pkg)
Prohibit adding classes to WebSite.Servlet

Overrides:
checkPackageDefinition in class SecurityManager
 o checkPrintJobAccess
 public void checkPrintJobAccess()
Allow creating print jobs

Overrides:
checkPrintJobAccess in class SecurityManager
 o checkPropertiesAccess
 public void checkPropertiesAccess()
Allow access to properties.

Overrides:
checkPropertiesAccess in class SecurityManager
 o checkPropertyAccess
 public void checkPropertyAccess(String key)
Overrides:
checkPropertyAccess in class SecurityManager
 o checkPropertyAccess
 public void checkPropertyAccess(String key,
                                 String def)
 o checkRead
 public void checkRead(FileDescriptor fd)
Allow reading

Overrides:
checkRead in class SecurityManager
 o checkRead
 public void checkRead(String file)
Overrides:
checkRead in class SecurityManager
 o checkRead
 public void checkRead(String file,
                       Object context)
Overrides:
checkRead in class SecurityManager
 o checkSecurityAccess
 public void checkSecurityAccess(String provider)
Allow access to security providers

Overrides:
checkSecurityAccess in class SecurityManager
 o checkSetFactory
 public void checkSetFactory()
Allow setting the socket factory

Overrides:
checkSetFactory in class SecurityManager
 o checkTopLevelWindow
 public boolean checkTopLevelWindow(Object window)
Disallow opening top-level windows

Overrides:
checkTopLevelWindow in class SecurityManager
 o checkWrite
 public void checkWrite(FileDescriptor fd)
Allow writing to files

Overrides:
checkWrite in class SecurityManager
 o checkWrite
 public void checkWrite(String file)
Overrides:
checkWrite in class SecurityManager
 o getThreadGroup
 public ThreadGroup getThreadGroup()
Create threads in current threadgroup

Overrides:
getThreadGroup in class SecurityManager

All Packages  Class Hierarchy  This Package  Previous  Next  Index