API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security. SecureClassLoader View Source
Author(s)
Li Gong
Roland Schemers
Since
Version
1.86, 11/17/05
Serial
Hierarchy
 Object
      ClassLoader
          SecureClassLoader
Implements
Subclasses
Description
public class SecureClassLoader
This class extends ClassLoader with additional support for defining classes with an associated code source and permissions which are retrieved by the system policy by default.
See also:   
Constructors
protected SecureClassLoader ()
  Creates a new SecureClassLoader using the default parent class loader for delegation.
protected SecureClassLoader (ClassLoader parent)
  Creates a new SecureClassLoader using the specified parent class loader for delegation.
Methods
Hide/Show inherited methods
publicsynchronized void clearAssertionStatus () [Inherited From ClassLoader]
  Sets the default assertion status for this class loader to false and discards any package defaults or class assertion status settings associated with the class loader.
@Deprecated
protectedfinal Class<Object> defineClass (byte[] b, int off, int len) throws ClassFormatError [Inherited From ClassLoader]
  Converts an array of bytes into an instance of class Class.
protectedfinal Class<Object> defineClass (String name, byte[] b, int off, int len) throws ClassFormatError [Inherited From ClassLoader]
  Converts an array of bytes into an instance of class Class.
protectedfinal Class<Object> defineClass (String name, byte[] b, int off, int len, CodeSource cs)
  Converts an array of bytes into an instance of class Class, with an optional CodeSource.
protectedfinal Class<Object> defineClass (String name, byte[] b, int off, int len, ProtectionDomain protectionDomain) throws ClassFormatError [Inherited From ClassLoader]
  Converts an array of bytes into an instance of class Class, with an optional ProtectionDomain.
protectedfinal Class<Object> defineClass (String name, ByteBuffer b, CodeSource cs)
  Converts a ByteBuffer into an instance of class Class, with an optional CodeSource.
protectedfinal Class<Object> defineClass (String name, ByteBuffer b, ProtectionDomain protectionDomain) throws ClassFormatError [Inherited From ClassLoader]
  Converts a ByteBuffer into an instance of class Class, with an optional ProtectionDomain.
protected Package definePackage (String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException [Inherited From ClassLoader]
  Defines a package by name in this ClassLoader.
protected Class<Object> findClass (String name) throws ClassNotFoundException [Inherited From ClassLoader]
  Finds the class with the specified binary name.
protected String findLibrary (String libname) [Inherited From ClassLoader]
  Returns the absolute path name of a native library.
protectedfinal Class<Object> findLoadedClass (String name) [Inherited From ClassLoader]
  Returns the class with the given binary name if this loader has been recorded by the Java virtual machine as an initiating loader of a class with that binary name.
protected URL findResource (String name) [Inherited From ClassLoader]
  Finds the resource with the given name.
protected Enumeration<URL> findResources (String name) throws IOException [Inherited From ClassLoader]
  Returns an enumeration of URL objects representing all the resources with the given name.
protectedfinal Class<Object> findSystemClass (String name) throws ClassNotFoundException [Inherited From ClassLoader]
  Finds a class with the specified binary name, loading it if necessary.
protected Package getPackage (String name) [Inherited From ClassLoader]
  Returns a Package that has been defined by this class loader or any of its ancestors.
protected Package getPackages () [Inherited From ClassLoader]
  Returns all of the Packages defined by this class loader and its ancestors.
publicfinal ClassLoader getParent () [Inherited From ClassLoader]
  Returns the parent class loader for delegation.
protected PermissionCollection getPermissions (CodeSource codesource)
  Returns the permissions for the given CodeSource object.
public URL getResource (String name) [Inherited From ClassLoader]
  Finds the resource with the given name.
public InputStream getResourceAsStream (String name) [Inherited From ClassLoader]
  Returns an input stream for reading the specified resource.
public Enumeration<URL> getResources (String name) throws IOException [Inherited From ClassLoader]
  Finds all the resources with the given name.
publicstatic ClassLoader getSystemClassLoader () [Inherited From ClassLoader]
  Returns the system class loader for delegation.
publicstatic URL getSystemResource (String name) [Inherited From ClassLoader]
  Find a resource of the specified name from the search path used to load classes.
publicstatic InputStream getSystemResourceAsStream (String name) [Inherited From ClassLoader]
  Open for reading, a resource of the specified name from the search path used to load classes.
publicstatic Enumeration<URL> getSystemResources (String name) throws IOException [Inherited From ClassLoader]
  Finds all resources of the specified name from the search path used to load classes.
public Class<Object> loadClass (String name) throws ClassNotFoundException [Inherited From ClassLoader]
  Loads the class with the specified binary name.
protectedsynchronized Class<Object> loadClass (String name, boolean resolve) throws ClassNotFoundException [Inherited From ClassLoader]
  Loads the class with the specified binary name.
protectedfinal void resolveClass (Class<Object> c) [Inherited From ClassLoader]
  Links the specified class.
publicsynchronized void setClassAssertionStatus (String className, boolean enabled) [Inherited From ClassLoader]
  Sets the desired assertion status for the named top-level class in this class loader and any nested classes contained therein.
publicsynchronized void setDefaultAssertionStatus (boolean enabled) [Inherited From ClassLoader]
  Sets the default assertion status for this class loader.
publicsynchronized void setPackageAssertionStatus (String packageName, boolean enabled) [Inherited From ClassLoader]
  Sets the package default assertion status for the named package.
protectedfinal void setSigners (Class<Object> c, Object signers) [Inherited From ClassLoader]
  Sets the signers of a class.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar