Microsoft SDK for Java

SecurityClassLoader Class

The SecurityClassLoader Class of the com.ms.security package provides methods that associate permissions with classes. You can specify the permissions and a java.security.Principal object to associate with a new class.

public abstract class SecurityClassLoader extends ClassLoader
{
  // Fields
  protected URL codeBase;
  protected ThreadGroup threadGroup;

  // Constructors
  protected SecurityClassLoader();

  // Methods
  protected final synchronized Class defineClass( String name,
        byte data[],int offset,int length,
        PermissionSet permissions,Principal principal);
  protected Class findPackageManagerClass(String name)
        throws ClassNotFoundException;
  protected Class findPackageManagerClass(String name,
        boolean fNameSpaceOnly) throws ClassNotFoundException;
  protected InputStream findPackageManagerResource(String name);
  public Object getSecurityContext();
  public ThreadGroup getThreadGroup();
  protected void setCodeBase (URL codeBase);
  protected void setPackageManagerNamespace(String namespace);
  protected void setThreadGroup(ThreadGroup tg);
}

Hierarchy

ClassLoader
  |
  +--SecurityClassLoader

© 1999 Microsoft Corporation. All rights reserved. Terms of use.