SecureClassLoader

public class SecureClassLoader extends ClassLoader
Known Direct Subclasses

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.

Protected Constructor Summary

SecureClassLoader(ClassLoader parent)
Creates a new SecureClassLoader using the specified parent class loader for delegation.
SecureClassLoader()
Creates a new SecureClassLoader using the default parent class loader for delegation.

Protected Method Summary

final Class<?>
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.
final Class<?>
defineClass(String name, ByteBuffer b, CodeSource cs)
Converts a ByteBuffer into an instance of class Class, with an optional CodeSource.
PermissionCollection
getPermissions(CodeSource codesource)
Returns the permissions for the given CodeSource object.

Inherited Method Summary