SecurityManager
public
class
SecurityManager
extends Object
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.
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object.
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
|
Fields
Public constructors
SecurityManager
public SecurityManager ()
Public methods
checkAccept
public void checkAccept (String host,
int port)
| Parameters |
host |
String |
port |
int |
checkAccess
public void checkAccess (Thread t)
checkAwtEventQueueAccess
public void checkAwtEventQueueAccess ()
checkConnect
public void checkConnect (String host,
int port)
| Parameters |
host |
String |
port |
int |
checkConnect
public void checkConnect (String host,
int port,
Object context)
| Parameters |
host |
String |
port |
int |
context |
Object |
checkCreateClassLoader
public void checkCreateClassLoader ()
checkDelete
public void checkDelete (String file)
checkExec
public void checkExec (String cmd)
checkExit
public void checkExit (int status)
checkLink
public void checkLink (String lib)
checkListen
public void checkListen (int port)
checkMemberAccess
public void checkMemberAccess (Class<?> clazz,
int which)
| Parameters |
clazz |
Class |
which |
int |
checkMulticast
public void checkMulticast (InetAddress maddr)
| Parameters |
maddr |
InetAddress |
checkPackageAccess
public void checkPackageAccess (String pkg)
checkPackageDefinition
public void checkPackageDefinition (String pkg)
checkPermission
public void checkPermission (Permission perm,
Object context)
| Parameters |
perm |
Permission |
context |
Object |
checkPermission
public void checkPermission (Permission perm)
| Parameters |
perm |
Permission |
checkPrintJobAccess
public void checkPrintJobAccess ()
checkPropertiesAccess
public void checkPropertiesAccess ()
checkPropertyAccess
public void checkPropertyAccess (String key)
checkRead
public void checkRead (FileDescriptor fd)
| Parameters |
fd |
FileDescriptor |
checkRead
public void checkRead (String file)
checkRead
public void checkRead (String file,
Object context)
| Parameters |
file |
String |
context |
Object |
checkSecurityAccess
public void checkSecurityAccess (String target)
checkSetFactory
public void checkSetFactory ()
checkSystemClipboardAccess
public void checkSystemClipboardAccess ()
checkTopLevelWindow
public boolean checkTopLevelWindow (Object window)
checkWrite
public void checkWrite (FileDescriptor fd)
| Parameters |
fd |
FileDescriptor |
checkWrite
public void checkWrite (String file)
getSecurityContext
public Object getSecurityContext ()
getThreadGroup
public ThreadGroup getThreadGroup ()
Returns the current thread's thread group.
Protected methods
classLoaderDepth
protected int classLoaderDepth ()
This method was deprecated
in API level 15.
Use checkPermission(Permission) instead.
getClassContext
protected Class[] getClassContext ()