|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
public class SecureClassLoader
A Secure Class Loader for loading classes with additional support for specifying code source and permissions when they are retrieved by the system policy handler.
| Constructor Summary | |
|---|---|
protected |
SecureClassLoader()
|
protected |
SecureClassLoader(ClassLoader parent)
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SecureClassLoader(ClassLoader parent)
protected SecureClassLoader()
| Method Detail |
|---|
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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||