/[classpath]/classpath/java/security/SecureClassLoader.java
ViewVC logotype

Diff of /classpath/java/security/SecureClassLoader.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11.2.2 by gnu_andrew, Tue Aug 2 20:12:25 2005 UTC revision 1.11.2.3 by tromey, Fri Nov 25 21:35:16 2005 UTC
# Line 37  exception statement from your version. * Line 37  exception statement from your version. *
37    
38  package java.security;  package java.security;
39    
40    import java.util.WeakHashMap;
41    
42  /**  /**
43   * A Secure Class Loader for loading classes with additional   * A Secure Class Loader for loading classes with additional
44   * support for specifying code source and permissions when   * support for specifying code source and permissions when
# Line 48  package java.security; Line 50  package java.security;
50   */   */
51  public class SecureClassLoader extends ClassLoader  public class SecureClassLoader extends ClassLoader
52  {  {
53    java.util.WeakHashMap protectionDomainCache = new java.util.WeakHashMap();    WeakHashMap<CodeSource, ProtectionDomain> protectionDomainCache
54        = new WeakHashMap<CodeSource, ProtectionDomain>();
55    
56    protected SecureClassLoader(ClassLoader parent)    protected SecureClassLoader(ClassLoader parent)
57    {    {
# Line 79  public class SecureClassLoader extends C Line 82  public class SecureClassLoader extends C
82     *     *
83     * @exception ClassFormatError if the byte array is not in proper classfile format.     * @exception ClassFormatError if the byte array is not in proper classfile format.
84     */     */
85    protected final Class defineClass(String name, byte[] b, int off, int len,    protected final Class<?> defineClass(String name, byte[] b, int off, int len,
86                                      CodeSource cs)                                      CodeSource cs)
87    {    {
88      if (cs != null)      if (cs != null)

Legend:
Removed from v.1.11.2.2  
changed lines
  Added in v.1.11.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26