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
-
ServiceSecurity()
-
-
checkLoad(String, Certificate)
- Check if the servlets holding this certificate is allowed to
be loaded to the runtime.
-
getClassLoader(String, String)
- Creates new ServletClassLoader
-
getClassLoader(URL)
- Creates new ServletClassLoader
ServiceSecurity
public ServiceSecurity()
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
getClassLoader
public ClassLoader getClassLoader(URL url)
- Creates new ServletClassLoader
- Parameters:
- url - codebase
- Returns:
- s ClassLoader
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