SecurityManager - JRE Emulation | JRE Emulation
public class

SecurityManager

extends Object
java.lang.Object
   ↳ java.lang.SecurityManager

Class Overview

Legacy security code; do not use.

Summary

Fields
protected boolean inCheck This field is deprecated. Use checkPermission(Permission) instead.
Public Constructors
SecurityManager()
Public Methods
void checkAccept(String host, int port)
void checkAccess(Thread t)
void checkAccess(ThreadGroup g)
void checkAwtEventQueueAccess()
void checkConnect(String host, int port)
void checkConnect(String host, int port, Object context)
void checkCreateClassLoader()
void checkDelete(String file)
void checkExec(String cmd)
void checkExit(int status)
void checkLink(String lib)
void checkListen(int port)
void checkMemberAccess(Class<?> clazz, int which)
void checkMulticast(InetAddress maddr)
void checkMulticast(InetAddress maddr, byte ttl)
This method is deprecated. use checkMulticast(java.net.InetAddress) instead.
void checkPackageAccess(String pkg)
void checkPackageDefinition(String pkg)
void checkPermission(Permission perm, Object context)
void checkPermission(Permission perm)
void checkPrintJobAccess()
void checkPropertiesAccess()
void checkPropertyAccess(String key)
void checkRead(FileDescriptor fd)
void checkRead(String file)
void checkRead(String file, Object context)
void checkSecurityAccess(String target)
void checkSetFactory()
void checkSystemClipboardAccess()
boolean checkTopLevelWindow(Object window)
void checkWrite(FileDescriptor fd)
void checkWrite(String file)
boolean getInCheck()
This method is deprecated. Use checkPermission(Permission) instead.
Object getSecurityContext()
ThreadGroup getThreadGroup()
Returns the current thread's thread group.
Protected Methods
int classDepth(String name)
This method is deprecated. Use checkPermission(Permission) instead.
int classLoaderDepth()
This method is deprecated. Use checkPermission(Permission) instead.
ClassLoader currentClassLoader()
This method is deprecated. Use checkPermission(Permission) instead.
Class<?> currentLoadedClass()
This method is deprecated. Use checkPermission(Permission) instead.
Class[] getClassContext()
boolean inClass(String name)
This method is deprecated. Use checkPermission(Permission) instead.
boolean inClassLoader()
This method is deprecated. Use checkPermission(Permission) instead.
Inherited Methods
[Expand]
From class java.lang.Object

Fields

protected boolean inCheck

This field is deprecated.
Use checkPermission(Permission) instead.

Public Constructors

public SecurityManager ()

Public Methods

public void checkAccept (String host, int port)

public void checkAccess (Thread t)

public void checkAccess (ThreadGroup g)

public void checkAwtEventQueueAccess ()

public 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 checkLink (String lib)

public void checkListen (int port)

public void checkMemberAccess (Class<?> clazz, int which)

public void checkMulticast (InetAddress maddr)

public void checkMulticast (InetAddress maddr, byte ttl)

This method is deprecated.
use checkMulticast(java.net.InetAddress) instead.

public void checkPackageAccess (String pkg)

public void checkPackageDefinition (String pkg)

public void checkPermission (Permission perm, Object context)

public void checkPermission (Permission perm)

public void checkPrintJobAccess ()

public void checkPropertiesAccess ()

public void checkPropertyAccess (String key)

public void checkRead (FileDescriptor fd)

public void checkRead (String file)

public void checkRead (String file, Object context)

public void checkSecurityAccess (String target)

public void checkSetFactory ()

public void checkSystemClipboardAccess ()

public boolean checkTopLevelWindow (Object window)

public void checkWrite (FileDescriptor fd)

public void checkWrite (String file)

public boolean getInCheck ()

This method is deprecated.
Use checkPermission(Permission) instead.

public Object getSecurityContext ()

public ThreadGroup getThreadGroup ()

Returns the current thread's thread group.

Protected Methods

protected int classDepth (String name)

This method is deprecated.
Use checkPermission(Permission) instead.

protected int classLoaderDepth ()

This method is deprecated.
Use checkPermission(Permission) instead.

protected ClassLoader currentClassLoader ()

This method is deprecated.
Use checkPermission(Permission) instead.

protected Class<?> currentLoadedClass ()

This method is deprecated.
Use checkPermission(Permission) instead.

protected Class[] getClassContext ()

protected boolean inClass (String name)

This method is deprecated.
Use checkPermission(Permission) instead.

protected boolean inClassLoader ()

This method is deprecated.
Use checkPermission(Permission) instead.