# Print output for @column tags ?>
public
class
SecurityManager
extends Object
java.lang.Object | |
↳ | java.lang.SecurityManager |
Legacy security code; do not use.
Security managers do not provide a secure environment for
executing untrusted code and are unsupported on Android. Untrusted code
cannot be safely isolated within a single VM on Android. Application
developers can assume that there's no SecurityManager installed,
i.e. System.getSecurityManager()
will return null.
Fields | |
---|---|
protected
boolean |
inCheck
This field is deprecated.
Use |
Public constructors | |
---|---|
SecurityManager()
|
Protected methods | |
---|---|
int
|
classDepth(String name)
This method is deprecated.
Use |
int
|
classLoaderDepth()
This method is deprecated.
Use |
ClassLoader
|
currentClassLoader()
This method is deprecated.
Use |
Class<?>
|
currentLoadedClass()
This method is deprecated.
Use |
Class[]
|
getClassContext()
|
boolean
|
inClass(String name)
This method is deprecated.
Use |
boolean
|
inClassLoader()
This method is deprecated.
Use |
Inherited methods | |
---|---|
protected boolean inCheck
This field is deprecated.
Use checkPermission(Permission)
instead.
public SecurityManager ()
public void checkAwtEventQueueAccess ()
public void checkConnect (String host, int port, Object context)
Parameters | |
---|---|
host |
String |
port |
int |
context |
Object |
public void checkCreateClassLoader ()
public void checkExit (int status)
Parameters | |
---|---|
status |
int |
public void checkListen (int port)
Parameters | |
---|---|
port |
int |
public void checkMemberAccess (Class<?> clazz, int which)
Parameters | |
---|---|
clazz |
Class |
which |
int |
public void checkMulticast (InetAddress maddr, byte ttl)
This method is deprecated.
use checkMulticast(java.net.InetAddress)
instead.
Parameters | |
---|---|
maddr |
InetAddress |
ttl |
byte |
public void checkPermission (Permission perm, Object context)
Parameters | |
---|---|
perm |
Permission |
context |
Object |
public void checkPrintJobAccess ()
public void checkPropertiesAccess ()
public void checkSetFactory ()
public void checkSystemClipboardAccess ()
public boolean checkTopLevelWindow (Object window)
Parameters | |
---|---|
window |
Object |
Returns | |
---|---|
boolean |
public boolean getInCheck ()
This method is deprecated.
Use checkPermission(Permission)
instead.
Returns | |
---|---|
boolean |
public ThreadGroup getThreadGroup ()
Returns the current thread's thread group.
Returns | |
---|---|
ThreadGroup |
protected int classDepth (String name)
This method is deprecated.
Use checkPermission(Permission)
instead.
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
int |
protected int classLoaderDepth ()
This method is deprecated.
Use checkPermission(Permission)
instead.
Returns | |
---|---|
int |
protected ClassLoader currentClassLoader ()
This method is deprecated.
Use checkPermission(Permission)
instead.
Returns | |
---|---|
ClassLoader |
protected Class<?> currentLoadedClass ()
This method is deprecated.
Use checkPermission(Permission)
instead.
Returns | |
---|---|
Class<?> |
protected boolean inClass (String name)
This method is deprecated.
Use checkPermission(Permission)
instead.
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
boolean |
protected boolean inClassLoader ()
This method is deprecated.
Use checkPermission(Permission)
instead.
Returns | |
---|---|
boolean |