Microsoft SDK for Java

StandardSecurityManager Class

The StandardSecurityManager Class of the com.ms.security package defines a security policy that uses the permission model to perform security checks. The StandardSecurityManager.checkXXX methods call the PolicyEngine.checkPermission methods to do the stack crawl that actually determines whether the specified operation is permitted.

public class StandardSecurityManager extends java.lang.SecurityManager
{
  // Constructors
  public StandardSecurityManager();

  // Methods
  public synchronized void checkAccept(String host, int port);
  public void checkAccess(Thread t);
  public void checkAccess(ThreadGroup g);
  public void checkAwtEventQueueAccess();
  public synchronized void checkConnect(String host, int port);
  public void checkConnect(String host, int port, Object context);
  public void checkCreateClassLoader();
  public void checkDelete(String file);
  public void checkExec(String cmd);
  public void checkExit(int status);
  public void checkFileDialog();
  public void checkLink(String lib);
  public synchronized void checkListen(int port);
  public void checkMemberAccess(Class clazz, int which);
  public void checkMulticast(InetAddress maddr);
  public void checkMulticast(InetAddress maddr, byte ttl);
  public synchronized void checkMultimedia();
  public void checkPackageAccess(String pkg);
  public static void checkPackageAccessFromClassName(
        String classname);
  public synchronized void checkPackageDefinition(String pkg);
  public static void checkPackageDefinitionFromClassName(
        String classname);
  public void checkPrintJobAccess();
  public void checkPropertiesAccess();
  public void checkPropertyAccess(String key);
  public void checkRead(String file);
  public static void checkRead(URL url);
  public void checkRead(String file, Object context);
  public void checkRead(FileDescriptor fd);
  public void checkRegistry(int access, String value);
  public void checkSecurityAccess(String provider);
  public void checkSetFactory();
  public void checkSystemClipboardAccess();
  public void checkSystemStreams(int streamID);
  public boolean checkTopLevelWindow(Object window);
  public void checkWrite(String file);
  public void checkWrite(FileDescriptor fd);
  public Object getSecurityContext();
  public ThreadGroup getThreadGroup();
  public static void installStandardSecurity();
}

Hierarchy

SecurityManager
  |
  +--StandardSecurityManager

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