public class SecureClassLoader extends ClassLoader
| Modifier | Constructor and Description |
|---|---|
protected |
SecureClassLoader() |
protected |
SecureClassLoader(ClassLoader parent) |
| Modifier and Type | Method and Description |
|---|---|
protected Class<?> |
defineClass(String name,
byte[] b,
int off,
int len,
CodeSource cs)
Creates a class using an array of bytes and a
CodeSource.
|
protected Class<?> |
defineClass(String name,
ByteBuffer b,
CodeSource cs)
Creates a class using an ByteBuffer and a
CodeSource.
|
protected PermissionCollection |
getPermissions(CodeSource cs)
Returns a PermissionCollection for the specified CodeSource.
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignersprotected SecureClassLoader(ClassLoader parent)
protected SecureClassLoader()
protected final Class<?> defineClass(String name, byte[] b, int off, int len, CodeSource cs)
name - the name to give the class. null if unknown.b - the data representing the classfile, in classfile format.off - the offset into the data where the classfile starts.len - the length of the classfile data in the array.cs - the CodeSource for the class or null when unknown.ClassFormatError - if the byte array is not in proper classfile format.protected final Class<?> defineClass(String name, ByteBuffer b, CodeSource cs)
name - the name to give the class. null if unknown.b - the data representing the classfile, in classfile format.cs - the CodeSource for the class or null when unknown.ClassFormatError - if the byte array is not in proper classfile format.protected PermissionCollection getPermissions(CodeSource cs)