All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.ServiceSecurity

java.lang.Object
   |
   +----java.lang.SecurityManager
           |
           +----sun.server.ServiceSecurity

public class ServiceSecurity
extends SecurityManager
An abstract class that can be subclassed to implement a service security policy. This class adds service-specific methods to the Java security manager. The methods in this class should be overridden by the security manager for a particular service, e.g. the ServletSecurity manager used by the http service.

See Also:
SecurityManager, ServletSecurity

Constructor Index

 o ServiceSecurity()

Method Index

 o checkLoad(String, Certificate)
Check if the servlets holding this certificate is allowed to be loaded to the runtime.
 o getClassLoader(String, String)
Creates new ServletClassLoader
 o getClassLoader(URL)
Creates new ServletClassLoader

Constructors

 o ServiceSecurity
  public ServiceSecurity()

Methods

 o checkLoad
  public void checkLoad(String name,
                        Certificate certificate)
Check if the servlets holding this certificate is allowed to be loaded to the runtime.

Parameters:
name - the name of the class to be loaded
certificate - signer's certificate
 o getClassLoader
  public ClassLoader getClassLoader(URL url)
Creates new ServletClassLoader

Parameters:
url - codebase
Returns:
s ClassLoader
 o getClassLoader
  public ClassLoader getClassLoader(String dir,
                                    String file)
Creates new ServletClassLoader

Parameters:
dir - base directory
Returns:
s ClassLoader

All Packages  Class Hierarchy  This Package  Previous  Next  Index